Copter: send RC_CHANNELS in SITL in compassmot loop

When setting an RC value in autotest, we require the change to appear in this message
This commit is contained in:
Peter Barker 2021-10-16 11:09:35 +11:00 committed by Peter Barker
parent d198c3e13d
commit 5b69ff6e65
1 changed files with 2 additions and 0 deletions

View File

@ -232,6 +232,8 @@ MAV_RESULT Copter::mavlink_compassmot(const GCS_MAVLINK &gcs_chan)
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
// a lot of autotest timeouts are based on receiving system time
gcs_chan.send_system_time();
// autotesting of compassmot wants to see RC channels message
gcs_chan.send_rc_channels();
#endif
}
}