Browse Source

mavlink: paranoia setting of failsafe when forcing AUTO mode

this shouldn't be needed, but will do no harm, and I thought I saw
this fail in a test
master
Andrew Tridgell 13 years ago
parent
commit
838c57cd1a
  1. 4
      ArduPlane/GCS_Mavlink.pde

4
ArduPlane/GCS_Mavlink.pde

@ -1071,6 +1071,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) @@ -1071,6 +1071,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
case MAV_ACTION_SET_AUTO:
set_mode(AUTO);
result=1;
// clearing failsafe should not be needed
// here. Added based on some puzzling results in
// the simulator (tridge)
failsafe = FAILSAFE_NONE;
break;
case MAV_ACTION_STORAGE_READ:

Loading…
Cancel
Save