@ -49,7 +49,9 @@ void AP_Frsky_D::send(void)
@@ -49,7 +49,9 @@ void AP_Frsky_D::send(void)
_D . last_200ms_frame = now ;
send_uint16 ( DATA_ID_TEMP2 , ( uint16_t ) ( AP : : gps ( ) . num_sats ( ) * 10 + AP : : gps ( ) . status ( ) ) ) ; // send GPS status and number of satellites as num_sats*10 + status (to fit into a uint8_t)
send_uint16 ( DATA_ID_TEMP1 , gcs ( ) . custom_mode ( ) ) ; // send flight mode
send_uint16 ( DATA_ID_FUEL , ( uint16_t ) roundf ( _battery . capacity_remaining_pct ( ) ) ) ; // send battery remaining
uint8_t percentage = 0 ;
IGNORE_RETURN ( _battery . capacity_remaining_pct ( percentage ) ) ;
send_uint16 ( DATA_ID_FUEL , ( uint16_t ) roundf ( percentage ) ) ; // send battery remaining
send_uint16 ( DATA_ID_VFAS , ( uint16_t ) roundf ( _battery . voltage ( ) * 10.0f ) ) ; // send battery voltage
float current ;
if ( ! _battery . current_amps ( current ) ) {