Plane: update AP_Notify flags for arming state

This commit is contained in:
Andrew Tridgell 2014-01-23 21:40:34 +11:00
parent aae0e3c0e5
commit c37a7cd9e1
1 changed files with 4 additions and 0 deletions

View File

@ -966,6 +966,10 @@ static void one_second_loop()
mavlink_system.sysid = g.sysid_this_mav; mavlink_system.sysid = g.sysid_this_mav;
update_aux(); update_aux();
// update notify flags
AP_Notify::flags.pre_arm_check = arming.pre_arm_checks(false);
AP_Notify::flags.armed = arming.is_armed() || arming.arming_required() == AP_Arming::NO;
} }
static void log_perf_info() static void log_perf_info()