mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Sub: sync MAVLink system id in 1hz loop
This commit is contained in:
parent
868a650fba
commit
12de0d85dd
@ -271,6 +271,9 @@ void Sub::three_hz_loop()
|
|||||||
// one_hz_loop - runs at 1Hz
|
// one_hz_loop - runs at 1Hz
|
||||||
void Sub::one_hz_loop()
|
void Sub::one_hz_loop()
|
||||||
{
|
{
|
||||||
|
// sync MAVLink system ID
|
||||||
|
mavlink_system.sysid = g.sysid_this_mav;
|
||||||
|
|
||||||
bool arm_check = arming.pre_arm_checks(false);
|
bool arm_check = arming.pre_arm_checks(false);
|
||||||
ap.pre_arm_check = arm_check;
|
ap.pre_arm_check = arm_check;
|
||||||
AP_Notify::flags.pre_arm_check = arm_check;
|
AP_Notify::flags.pre_arm_check = arm_check;
|
||||||
|
Loading…
Reference in New Issue
Block a user