mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Merge remote-tracking branch 'multiwii/master' into project-structure-alternative
Conflicts: src/mw.h
This commit is contained in:
commit
be6ce96e5d
4 changed files with 16 additions and 24 deletions
4
src/mw.c
4
src/mw.c
|
@ -165,7 +165,7 @@ void annexCode(void)
|
|||
#endif
|
||||
|
||||
if ((int32_t)(currentTime - calibratedAccTime) >= 0) {
|
||||
if (!f.SMALL_ANGLES_25) {
|
||||
if (!f.SMALL_ANGLE) {
|
||||
f.ACC_CALIBRATED = 0; // the multi uses ACC and is not calibrated or is too much inclinated
|
||||
LED0_TOGGLE;
|
||||
calibratedAccTime = currentTime + 500000;
|
||||
|
@ -742,7 +742,7 @@ void loop(void)
|
|||
if (dif >= +180)
|
||||
dif -= 360;
|
||||
dif *= -mcfg.yaw_control_direction;
|
||||
if (f.SMALL_ANGLES_25)
|
||||
if (f.SMALL_ANGLE)
|
||||
rcCommand[YAW] -= dif * cfg.P8[PIDMAG] / 30; // 18 deg
|
||||
} else
|
||||
magHold = heading;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue