aboutsummaryrefslogtreecommitdiff
path: root/apps/fixedwing_att_control
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2012-11-11 17:55:05 +0100
committerThomas Gubler <thomasgubler@gmail.com>2012-11-11 17:55:05 +0100
commit403874d313464c72da309483e6e8271e9c70f965 (patch)
treeb9d21898f99feb4f9d71e752d24aacd425e34b6f /apps/fixedwing_att_control
parent60198e3a2da7c5507abcab7a3d032858691d024a (diff)
downloadpx4-firmware-403874d313464c72da309483e6e8271e9c70f965.tar.gz
px4-firmware-403874d313464c72da309483e6e8271e9c70f965.tar.bz2
px4-firmware-403874d313464c72da309483e6e8271e9c70f965.zip
change sign of elevator in mixer to match standard convention (positive --> more lift)
Diffstat (limited to 'apps/fixedwing_att_control')
-rw-r--r--apps/fixedwing_att_control/fixedwing_att_control_rate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/fixedwing_att_control/fixedwing_att_control_rate.c b/apps/fixedwing_att_control/fixedwing_att_control_rate.c
index 567f03784..b81d50168 100644
--- a/apps/fixedwing_att_control/fixedwing_att_control_rate.c
+++ b/apps/fixedwing_att_control/fixedwing_att_control_rate.c
@@ -171,7 +171,7 @@ int fixedwing_att_control_rates(const struct vehicle_rates_setpoint_s *rate_sp,
actuators->control[0] = pid_calculate(&roll_rate_controller, rate_sp->roll, rates[0], 0, deltaT);
- actuators->control[1] = -pid_calculate(&pitch_rate_controller, rate_sp->pitch, rates[1], 0, deltaT); //TODO: (-) sign comes from the elevator (positive --> deflection downwards), this has to be moved to the mixer...
+ actuators->control[1] = pid_calculate(&pitch_rate_controller, rate_sp->pitch, rates[1], 0, deltaT); //TODO: (-) sign comes from the elevator (positive --> deflection downwards), this has to be moved to the mixer...
actuators->control[2] = 0;//pid_calculate(&yaw_rate_controller, rate_sp->yaw, rates[2], 0, deltaT); //XXX TODO disabled for now
counter++;