my fix for "servo ticking" in auto1

This commit is contained in:
Sven Lorenz
2011-09-26 20:37:00 +02:00
parent 3113ebea5a
commit 78605b4f41
+2 -1
View File
@@ -175,7 +175,8 @@ bool_t nav_approaching_xy(float x, float y, float from_x, float from_y, float ap
#define NavAttitude(_roll) { \ #define NavAttitude(_roll) { \
lateral_mode = LATERAL_MODE_ROLL; \ lateral_mode = LATERAL_MODE_ROLL; \
h_ctl_roll_setpoint = _roll; \ if(pprz_mode != PPRZ_MODE_AUTO1) \
{h_ctl_roll_setpoint = _roll;} \
} }
#define nav_IncreaseShift(x) { if (x==0) nav_shift = 0; else nav_shift += x; } #define nav_IncreaseShift(x) { if (x==0) nav_shift = 0; else nav_shift += x; }