|
|
|
@ -171,16 +171,9 @@ void NOINLINE Copter::send_nav_controller_output(mavlink_channel_t chan)
@@ -171,16 +171,9 @@ void NOINLINE Copter::send_nav_controller_output(mavlink_channel_t chan)
|
|
|
|
|
0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NOINLINE Copter::send_vfr_hud(mavlink_channel_t chan) |
|
|
|
|
int16_t GCS_MAVLINK_Copter::vfr_hud_throttle() const |
|
|
|
|
{ |
|
|
|
|
mavlink_msg_vfr_hud_send( |
|
|
|
|
chan, |
|
|
|
|
gps.ground_speed(), |
|
|
|
|
ahrs.groundspeed(), |
|
|
|
|
(ahrs.yaw_sensor / 100) % 360, |
|
|
|
|
(int16_t)(motors->get_throttle() * 100), |
|
|
|
|
current_loc.alt / 100.0f, |
|
|
|
|
climb_rate / 100.0f); |
|
|
|
|
return (int16_t)(copter.motors->get_throttle() * 100); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -308,11 +301,6 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
@@ -308,11 +301,6 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
|
|
|
|
|
copter.send_nav_controller_output(chan); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MSG_VFR_HUD: |
|
|
|
|
CHECK_PAYLOAD_SIZE(VFR_HUD); |
|
|
|
|
copter.send_vfr_hud(chan); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MSG_RPM: |
|
|
|
|
#if RPM_ENABLED == ENABLED |
|
|
|
|
CHECK_PAYLOAD_SIZE(RPM); |
|
|
|
|