Sub: Send BATTERY_STATUS

This commit is contained in:
Michael du Breuil 2017-04-07 14:17:52 -07:00 committed by Randy Mackay
parent 46790db751
commit 3a8994b2ce
1 changed files with 4 additions and 0 deletions

View File

@ -682,6 +682,9 @@ bool GCS_MAVLINK_Sub::try_send_message(enum ap_message id)
case MSG_ADSB_VEHICLE:
break; // Do nothing for Sub, here to prevent warning
case MSG_BATTERY_STATUS:
send_battery_status(sub.battery);
break;
}
return true;
@ -873,6 +876,7 @@ GCS_MAVLINK_Sub::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);