diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-05-21 13:18:06 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-05-21 13:18:06 +0200 |
commit | eade9c9b347c5c0c2a2060828dd8d2a014824091 (patch) | |
tree | 10c8e48456396d5f18f3fb00c2296e72e354fe02 | |
parent | 0dc7f360a4c495a04553df27e6799428798b090f (diff) |
Fixed typo.
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -169,8 +169,8 @@ class I2CThread : public BaseThread<I2CThread, 256> { roll_angle_accum += roll_angle_error; // 20 deg s max error. - saturate(pitch_angle_error, 364088); - saturate(roll_angle_error, 364088); + saturate(pitch_angle_accum, 364088); + saturate(roll_angle_accum, 364088); int32_t pitch_rate_target = (pitch_angle_error * 4 * 65536 + pitch_angle_accum * 98) >> 16; int32_t roll_rate_target = (roll_angle_error * 4 * 65536 + roll_angle_accum * 98) >> 16; |