1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 22:35:19 +03:00

Merge pull request #4603 from iNavFlight/de_yg_surface_mode_experimental

Add accelerometer weight to position estimation
This commit is contained in:
Konstantin Sharlaimov 2019-05-04 21:26:14 +02:00 committed by GitHub
commit ff7ca472ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 21 deletions

View file

@ -2687,6 +2687,7 @@ void applyWaypointNavigationAndAltitudeHold(void)
if (posControl.flags.estAltStatus == EST_TRUSTED) navFlags |= (1 << 0);
if (posControl.flags.estAglStatus == EST_TRUSTED) navFlags |= (1 << 1);
if (posControl.flags.estPosStatus == EST_TRUSTED) navFlags |= (1 << 2);
if (posControl.flags.isTerrainFollowEnabled) navFlags |= (1 << 3);
#if defined(NAV_GPS_GLITCH_DETECTION)
if (isGPSGlitchDetected()) navFlags |= (1 << 4);
#endif