Skip to content

Commit

Permalink
Rover: adjust for AP_Mission logging mission-item-starts
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Oct 1, 2024
1 parent 48c9cd6 commit 981c500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Rover/mode_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,13 +512,6 @@ void ModeAuto::send_guided_position_target()
/********************************************************************************/
bool ModeAuto::start_command(const AP_Mission::Mission_Command& cmd)
{
#if HAL_LOGGING_ENABLED
// log when new commands start
if (rover.should_log(MASK_LOG_CMD)) {
rover.logger.Write_Mission_Cmd(mission, cmd);
}
#endif

switch (cmd.id) {
case MAV_CMD_NAV_WAYPOINT: // Navigate to Waypoint
return do_nav_wp(cmd, false);
Expand Down
3 changes: 3 additions & 0 deletions Rover/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ void Rover::init_ardupilot()
#if AP_MISSION_ENABLED
// initialise mission library
mode_auto.mission.init();
#if HAL_LOGGING_ENABLED
mode_auto.mission.set_log_start_mission_item_bit(MASK_LOG_CMD);
#endif
#endif

// initialise AP_Logger library
Expand Down

0 comments on commit 981c500

Please sign in to comment.