Copter: Send BATTERY_STATUS

This commit is contained in:
Michael du Breuil 2017-04-07 13:14:11 -07:00 committed by Randy Mackay
parent b850c1041f
commit ea89bd1178

View File

@ -580,6 +580,9 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
CHECK_PAYLOAD_SIZE(ADSB_VEHICLE);
copter.adsb.send_adsb_vehicle(chan);
break;
case MSG_BATTERY_STATUS:
send_battery_status(copter.battery);
break;
}
return true;
@ -773,6 +776,7 @@ GCS_MAVLINK_Copter::data_stream_send(void)
send_message(MSG_TERRAIN);
#endif
send_message(MSG_BATTERY2);
send_message(MSG_BATTERY_STATUS);
send_message(MSG_MOUNT_STATUS);
send_message(MSG_OPTICAL_FLOW);
send_message(MSG_GIMBAL_REPORT);