Copter: move sending of battery data up
This commit is contained in:
parent
b38d23d542
commit
ec6fb0c612
@ -408,11 +408,6 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
|
|||||||
#endif // MOUNT == ENABLED
|
#endif // MOUNT == ENABLED
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSG_BATTERY2:
|
|
||||||
CHECK_PAYLOAD_SIZE(BATTERY2);
|
|
||||||
send_battery2(copter.battery);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case MSG_OPTICAL_FLOW:
|
case MSG_OPTICAL_FLOW:
|
||||||
#if OPTFLOW == ENABLED
|
#if OPTFLOW == ENABLED
|
||||||
CHECK_PAYLOAD_SIZE(OPTICAL_FLOW);
|
CHECK_PAYLOAD_SIZE(OPTICAL_FLOW);
|
||||||
@ -452,9 +447,7 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
|
|||||||
copter.adsb.send_adsb_vehicle(chan);
|
copter.adsb.send_adsb_vehicle(chan);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case MSG_BATTERY_STATUS:
|
|
||||||
send_battery_status(copter.battery);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return GCS_MAVLINK::try_send_message(id);
|
return GCS_MAVLINK::try_send_message(id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user