Skip to content

Commit

Permalink
GCS_MAVLink: add capability to send autopilot to config error loop
Browse files Browse the repository at this point in the history
Co-authored-by: Bob Long <[email protected]>
Co-authored-by: Michelle Rossouw <[email protected]>

another one of our "do nasty thing to autopilot" commands, useful for testing what ground control stations do when the autopilot is in this state
  • Loading branch information
peterbarker committed Feb 1, 2025
1 parent 0cacc90 commit ccd73e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3469,6 +3469,9 @@ MAV_RESULT GCS_MAVLINK::handle_preflight_reboot(const mavlink_command_int_t &pac
send_text(MAV_SEVERITY_WARNING,"deadlock passed");
return MAV_RESULT_ACCEPTED;
}
if (is_equal(packet.param4, 101.0f)) {
AP_BoardConfig::config_error("config_error - YOU~RE WELCOME!"); // the capital-U and ~ here are actually important for testing a MissionPlanner bug!
}
#endif // AP_MAVLINK_FAILURE_CREATION_ENABLED

#if HAL_ENABLE_DFU_BOOT
Expand Down

0 comments on commit ccd73e7

Please sign in to comment.