ArduPlane: adjust for AP_Mission logging mission-item-starts

This commit is contained in:
Peter Barker 2024-09-27 17:37:58 +10:00 committed by Andrew Tridgell
parent 9f1690ac20
commit 0c0a615403
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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