Browse Source

autotest: remove thrust-to-actuator to armed section

zr-v5.1
Peter Barker 4 years ago committed by Andrew Tridgell
parent
commit
000ff90a71
  1. 2
      ArduPlane/tailsitter.cpp

2
ArduPlane/tailsitter.cpp

@ -167,9 +167,9 @@ void QuadPlane::tailsitter_output(void) @@ -167,9 +167,9 @@ void QuadPlane::tailsitter_output(void)
SRV_Channels::set_output_scaled(SRV_Channel::k_aileron, (motors->get_yaw())*-SERVO_MAX);
SRV_Channels::set_output_scaled(SRV_Channel::k_elevator, (motors->get_pitch())*SERVO_MAX);
SRV_Channels::set_output_scaled(SRV_Channel::k_rudder, (motors->get_roll())*SERVO_MAX);
SRV_Channels::set_output_scaled(SRV_Channel::k_throttle, motors->thrust_to_actuator(motors->get_throttle()) * 100);
if (hal.util->get_soft_armed()) {
SRV_Channels::set_output_scaled(SRV_Channel::k_throttle, motors->thrust_to_actuator(motors->get_throttle()) * 100);
// scale surfaces for throttle
tailsitter_speed_scaling();
}

Loading…
Cancel
Save