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

Rover: fixed build warnings

parent 8a77fef6
No related branches found
No related tags found
No related merge requests found
...@@ -530,14 +530,22 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id) ...@@ -530,14 +530,22 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
// unused // unused
break; break;
case MSG_RETRY_DEFERRED:
case MSG_TERRAIN:
break; // just here to prevent a warning
case MSG_BATTERY2: case MSG_BATTERY2:
CHECK_PAYLOAD_SIZE(BATTERY2); CHECK_PAYLOAD_SIZE(BATTERY2);
gcs[chan-MAVLINK_COMM_0].send_battery2(battery); gcs[chan-MAVLINK_COMM_0].send_battery2(battery);
break; break;
case MSG_CAMERA_FEEDBACK:
#if CAMERA == ENABLED
CHECK_PAYLOAD_SIZE(CAMERA_FEEDBACK);
camera.send_feedback(chan, gps, ahrs, current_loc);
#endif
break;
case MSG_RETRY_DEFERRED:
case MSG_TERRAIN:
case MSG_OPTICAL_FLOW:
break; // just here to prevent a warning
} }
......
...@@ -308,6 +308,7 @@ static void do_take_picture() ...@@ -308,6 +308,7 @@ static void do_take_picture()
{ {
#if CAMERA == ENABLED #if CAMERA == ENABLED
camera.trigger_pic(); camera.trigger_pic();
gcs_send_message(MSG_CAMERA_FEEDBACK);
if (should_log(MASK_LOG_CAMERA)) { if (should_log(MASK_LOG_CAMERA)) {
DataFlash.Log_Write_Camera(ahrs, gps, current_loc); DataFlash.Log_Write_Camera(ahrs, gps, current_loc);
} }
......
...@@ -341,9 +341,7 @@ setup_flightmodes(uint8_t argc, const Menu::arg *argv) ...@@ -341,9 +341,7 @@ setup_flightmodes(uint8_t argc, const Menu::arg *argv)
mode != AUTO && mode != AUTO &&
mode != RTL) mode != RTL)
{ {
if (mode < MANUAL) if (mode > RTL)
mode = RTL;
else if (mode > RTL)
mode = MANUAL; mode = MANUAL;
else else
mode += radioInputSwitch; mode += radioInputSwitch;
......
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