1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Merge pull request #4242 from shellixyz/change_previousHeadingError_type

Change previousHeadingError type from float to int32_t
This commit is contained in:
Konstantin Sharlaimov 2019-01-21 22:50:12 +01:00 committed by GitHub
commit 7bdd5967e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,7 +285,7 @@ bool adjustFixedWingPositionFromRCInput(void)
static void updatePositionHeadingController_FW(timeUs_t currentTimeUs, timeDelta_t deltaMicros)
{
static timeUs_t previousTimeMonitoringUpdate;
static float previousHeadingError;
static int32_t previousHeadingError;
static bool errorIsDecreasing;
static bool forceTurnDirection = false;