mirror of https://github.com/ArduPilot/ardupilot
ArduPlane: adjust for AP_Mission logging mission-item-starts
This commit is contained in:
parent
9f1690ac20
commit
0c0a615403
|
@ -12,13 +12,6 @@ bool Plane::start_command(const AP_Mission::Mission_Command& cmd)
|
|||
plane.target_altitude.terrain_following_pending = false;
|
||||
#endif
|
||||
|
||||
#if HAL_LOGGING_ENABLED
|
||||
// log when new commands start
|
||||
if (should_log(MASK_LOG_CMD)) {
|
||||
logger.Write_Mission_Cmd(mission, cmd);
|
||||
}
|
||||
#endif
|
||||
|
||||
// special handling for nav vs non-nav commands
|
||||
if (AP_Mission::is_nav_cmd(cmd)) {
|
||||
// set takeoff_complete to true so we don't add extra elevator
|
||||
|
|
|
@ -127,6 +127,9 @@ void Plane::init_ardupilot()
|
|||
|
||||
// initialise mission library
|
||||
mission.init();
|
||||
#if HAL_LOGGING_ENABLED
|
||||
mission.set_log_start_mission_item_bit(MASK_LOG_CMD);
|
||||
#endif
|
||||
|
||||
// initialise AP_Logger library
|
||||
#if HAL_LOGGING_ENABLED
|
||||
|
|
Loading…
Reference in New Issue