Skip to content
Snippets Groups Projects
Commit 1d2d8c90 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

Rover: make preflight calibration follow plane conventions

parent c33f5437
No related branches found
No related tags found
No related merge requests found
...@@ -829,15 +829,17 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) ...@@ -829,15 +829,17 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
break; break;
case MAV_CMD_PREFLIGHT_CALIBRATION: case MAV_CMD_PREFLIGHT_CALIBRATION:
if (packet.param1 == 1 || if ((packet.param1 == 1 ||
packet.param2 == 1 || packet.param2 == 1) &&
packet.param3 == 1) { packet.param3 == 0) {
startup_INS_ground(true); startup_INS_ground(true);
} result = MAV_RESULT_ACCEPTED;
if (packet.param4 == 1) { } else if (packet.param4 == 1) {
trim_radio(); trim_radio();
result = MAV_RESULT_ACCEPTED;
} else {
send_text_P(SEVERITY_LOW, PSTR("Unsupported preflight calibration"));
} }
result = MAV_RESULT_ACCEPTED;
break; break;
case MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS: case MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment