Browse Source

Plane: added 2nd battery monitoring support

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
74fc7fbea5
  1. 6
      ArduPlane/GCS_Mavlink.pde

6
ArduPlane/GCS_Mavlink.pde

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

Loading…
Cancel
Save