Plane: adsb specific status updates

This commit is contained in:
Tom Pittenger 2016-07-10 17:23:08 -07:00
parent 8617880714
commit ab38b12f2c
3 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,8 @@ void Plane::one_second_loop()
// make it possible to change orientation at runtime // make it possible to change orientation at runtime
ahrs.set_orientation(); ahrs.set_orientation();
adsb.set_stall_speed_cm(aparm.airspeed_min);
// sync MAVLink system ID // sync MAVLink system ID
mavlink_system.sysid = g.sysid_this_mav; mavlink_system.sysid = g.sysid_this_mav;

View File

@ -153,6 +153,7 @@ void Plane::update_is_flying_5Hz(void)
} }
} }
previous_is_flying = new_is_flying; previous_is_flying = new_is_flying;
adsb.set_is_flying(new_is_flying);
crash_detection_update(); crash_detection_update();

View File

@ -482,6 +482,8 @@ void Plane::set_mode(enum FlightMode mode)
// start with throttle suppressed in auto_throttle modes // start with throttle suppressed in auto_throttle modes
throttle_suppressed = auto_throttle_mode; throttle_suppressed = auto_throttle_mode;
adsb.set_is_auto_mode(auto_navigation_mode);
if (should_log(MASK_LOG_MODE)) if (should_log(MASK_LOG_MODE))
DataFlash.Log_Write_Mode(control_mode); DataFlash.Log_Write_Mode(control_mode);