aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ecl/attitude_fw
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2013-10-17 20:29:54 +0200
committerThomas Gubler <thomasgubler@gmail.com>2013-10-24 17:40:14 +0200
commita0ea0901b555b4c7732dbc2da22339d82f581e48 (patch)
tree59c6b4c26b82f9d1b6ab40a2511017bd953da4fb /src/lib/ecl/attitude_fw
parentb21b9078e2d719bfd7af9580ac3b9b5957ef1d57 (diff)
downloadpx4-firmware-a0ea0901b555b4c7732dbc2da22339d82f581e48.tar.gz
px4-firmware-a0ea0901b555b4c7732dbc2da22339d82f581e48.tar.bz2
px4-firmware-a0ea0901b555b4c7732dbc2da22339d82f581e48.zip
wip, minor bugfixes in fw att control
Diffstat (limited to 'src/lib/ecl/attitude_fw')
-rw-r--r--src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp b/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp
index 30a46b0e7..e1f4d3eef 100644
--- a/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp
+++ b/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp
@@ -90,7 +90,7 @@ float ECL_PitchController::control_attitude(float pitch_setpoint, float roll, fl
float pitch_error = pitch_setpoint - pitch;
/* Apply P controller: rate setpoint from current error and time constant */
- float _rate_setpoint = pitch_error / _tc;
+ _rate_setpoint = pitch_error / _tc;
/* add turn offset */
_rate_setpoint += turn_offset;