Sub: fill Notify flag for flying

This commit is contained in:
Peter Barker 2019-03-02 11:09:25 +11:00 committed by Peter Barker
parent 7d2138bed9
commit 5b618fb582
1 changed files with 1 additions and 0 deletions

View File

@ -266,6 +266,7 @@ void Sub::one_hz_loop()
ap.pre_arm_check = arm_check;
AP_Notify::flags.pre_arm_check = arm_check;
AP_Notify::flags.pre_arm_gps_check = position_ok();
AP_Notify::flags.flying = motors.armed();
if (should_log(MASK_LOG_ANY)) {
Log_Write_Data(DATA_AP_STATE, ap.value);