mirror of https://github.com/ArduPilot/ardupilot
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
|
||||
void Sub::one_hz_loop()
|
||||
{
|
||||
// sync MAVLink system ID
|
||||
mavlink_system.sysid = g.sysid_this_mav;
|
||||
|
||||
bool arm_check = arming.pre_arm_checks(false);
|
||||
ap.pre_arm_check = arm_check;
|
||||
AP_Notify::flags.pre_arm_check = arm_check;
|
||||
|
|
Loading…
Reference in New Issue