ArduCopter: radio fix passthrough range on heli/coax/single

This commit is contained in:
Pierre Kancir 2017-05-12 17:02:41 +02:00 committed by Randy Mackay
parent f0d5017b43
commit 30243ed5fc
1 changed files with 1 additions and 1 deletions

View File

@ -182,5 +182,5 @@ void Copter::set_throttle_zero_flag(int16_t throttle_control)
// pass pilot's inputs to motors library (used to allow wiggling servos while disarmed on heli, single, coax copters)
void Copter::radio_passthrough_to_motors()
{
motors->set_radio_passthrough(channel_roll->get_control_in()/1000.0f, channel_pitch->get_control_in()/1000.0f, channel_throttle->get_control_in()/1000.0f, channel_yaw->get_control_in()/1000.0f);
motors->set_radio_passthrough(channel_roll->norm_input(), channel_pitch->norm_input(), channel_throttle->norm_input(), channel_yaw->norm_input());
}