mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
Plane: adsb specific status updates
This commit is contained in:
parent
8617880714
commit
ab38b12f2c
@ -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;
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user