Browse Source

AP_Motors: fix tailsitter tilt servo outputs

master
Randy Mackay 6 years ago
parent
commit
f89c18740d
  1. 4
      libraries/AP_Motors/AP_MotorsTailsitter.cpp

4
libraries/AP_Motors/AP_MotorsTailsitter.cpp

@ -104,8 +104,8 @@ void AP_MotorsTailsitter::output_to_motors() @@ -104,8 +104,8 @@ void AP_MotorsTailsitter::output_to_motors()
}
// Always output to tilt servos
SRV_Channels::set_output_scaled(SRV_Channel::k_throttleLeft, _tilt_left*SERVO_OUTPUT_RANGE);
SRV_Channels::set_output_scaled(SRV_Channel::k_throttleRight, _tilt_right*SERVO_OUTPUT_RANGE);
SRV_Channels::set_output_scaled(SRV_Channel::k_tiltMotorLeft, _tilt_left*SERVO_OUTPUT_RANGE);
SRV_Channels::set_output_scaled(SRV_Channel::k_tiltMotorRight, _tilt_right*SERVO_OUTPUT_RANGE);
// plane outputs for Qmodes are setup here, and written to the HAL by the plane servos loop
SRV_Channels::set_output_scaled(SRV_Channel::k_aileron, -_yaw_in*SERVO_OUTPUT_RANGE);

Loading…
Cancel
Save