1
0
Fork 0
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:
Dominic Clifton 2015-11-14 13:38:55 +00:00
commit fc2f44c029

View file

@ -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;