Plane: use SRV_Channels set_esc_scaling()

this fixes throttle range on Disco with SERVO_RNG_ENABLE=1
This commit is contained in:
Andrew Tridgell 2016-10-12 13:05:24 +11:00
parent 2ec439d7e3
commit 57ddc8f58f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void Plane::set_control_channels(void)
// setup correct scaling for ESCs like the UAVCAN PX4ESC which
// take a proportion of speed
hal.rcout->set_esc_scaling(channel_throttle->get_radio_min(), channel_throttle->get_radio_max());
g2.servo_channels.set_esc_scaling(channel_throttle->get_ch_out());
}
/*