Sub: use get_throttle_control_dz in place of throttle->get_control_in

This handles special treatment of throttle rc_channel with type_range in
sub
This commit is contained in:
Jacob Walser 2016-10-13 18:47:44 -04:00 committed by Andrew Tridgell
parent 5ea7d3443d
commit 330d31189e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ void Sub::manual_run()
motors.set_roll(channel_roll->norm_input_dz()*0.67f);
motors.set_pitch(channel_pitch->norm_input_dz()*0.67f);
motors.set_yaw(channel_yaw->norm_input_dz()*0.67f);
motors.set_throttle(channel_throttle->norm_input());
motors.set_throttle(channel_throttle->norm_input_dz());
motors.set_forward(channel_forward->norm_input_dz()*0.67f);
motors.set_lateral(channel_lateral->norm_input_dz()*0.67f);
}