mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
Merge pull request #1079 from borisbstyle/mag_hold_dead
Decreased MAG_HOLD deadband to 15
This commit is contained in:
commit
fc2f44c029
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ void updateInflightCalibrationState(void)
|
|||
|
||||
void updateMagHold(void)
|
||||
{
|
||||
if (ABS(rcCommand[YAW]) < 70 && FLIGHT_MODE(MAG_MODE)) {
|
||||
if (ABS(rcCommand[YAW]) < 15 && FLIGHT_MODE(MAG_MODE)) {
|
||||
int16_t dif = heading - magHold;
|
||||
if (dif <= -180)
|
||||
dif += 360;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue