Plane: added 2nd battery monitoring support

This commit is contained in:
Andrew Tridgell 2014-08-09 12:14:21 +10:00
parent 9a1bac06d4
commit 74fc7fbea5
1 changed files with 6 additions and 0 deletions

View File

@ -634,6 +634,11 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
#endif
break;
case MSG_BATTERY2:
CHECK_PAYLOAD_SIZE(BATTERY2);
gcs[chan-MAVLINK_COMM_0].send_battery2(battery);
break;
case MSG_WIND:
CHECK_PAYLOAD_SIZE(WIND);
send_wind(chan);
@ -870,6 +875,7 @@ GCS_MAVLINK::data_stream_send(void)
#if AP_TERRAIN_AVAILABLE
send_message(MSG_TERRAIN);
#endif
send_message(MSG_BATTERY2);
}
}