mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
my fix for "servo ticking" in auto1
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user