mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-18 22:05:15 +03:00
Remove redundant isAdjustingPosition var From nav_fw
Redundant, since line 252 already checks if 'posControl.flags.isAdjustingPosition' is true.
This commit is contained in:
parent
4927baa0c3
commit
169f349c05
1 changed files with 0 additions and 2 deletions
|
@ -258,8 +258,6 @@ static void calculateVirtualPositionTarget_FW(float trackingPeriod)
|
||||||
// Rotate this target shift from body frame to to earth frame and apply to position target
|
// Rotate this target shift from body frame to to earth frame and apply to position target
|
||||||
virtualDesiredPosition.x += -rcShiftY * posControl.actualState.sinYaw;
|
virtualDesiredPosition.x += -rcShiftY * posControl.actualState.sinYaw;
|
||||||
virtualDesiredPosition.y += rcShiftY * posControl.actualState.cosYaw;
|
virtualDesiredPosition.y += rcShiftY * posControl.actualState.cosYaw;
|
||||||
|
|
||||||
posControl.flags.isAdjustingPosition = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue