Sub: sync MAVLink system id in 1hz loop

This commit is contained in:
Willian Galvani 2024-03-20 14:04:55 -03:00
parent 868a650fba
commit 12de0d85dd
1 changed files with 3 additions and 0 deletions

View File

@ -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;