mirror of https://github.com/ArduPilot/ardupilot
Rover: move sending of battery data up
This commit is contained in:
parent
347ab96bf0
commit
b38d23d542
|
@ -388,9 +388,6 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id)
|
||||||
rover.send_fence_status(chan);
|
rover.send_fence_status(chan);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSG_BATTERY2:
|
|
||||||
CHECK_PAYLOAD_SIZE(BATTERY2);
|
|
||||||
send_battery2(rover.battery);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSG_EKF_STATUS_REPORT:
|
case MSG_EKF_STATUS_REPORT:
|
||||||
|
@ -405,10 +402,6 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id)
|
||||||
rover.send_pid_tuning(chan);
|
rover.send_pid_tuning(chan);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSG_BATTERY_STATUS:
|
|
||||||
send_battery_status(rover.battery);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return GCS_MAVLINK::try_send_message(id);
|
return GCS_MAVLINK::try_send_message(id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue