AttPosEKF: Compile fix for missing braces

This commit is contained in:
Johan Jansen 2015-03-08 22:18:28 +01:00
parent cdbd6872ed
commit 73ac2d90cf
1 changed files with 1 additions and 1 deletions

View File

@ -2552,7 +2552,7 @@ void AttPosEKF::setOnGround(const bool isLanded)
bool isMovingForward = _accNavMagHorizontal > 0.5f; bool isMovingForward = _accNavMagHorizontal > 0.5f;
// don't update magnetic field states if on ground or not using compass // don't update magnetic field states if on ground or not using compass
inhibitMagStates = !useCompass || _onGround) || (!_isFixedWing && !isMovingForward); inhibitMagStates = (!useCompass || _onGround) || (!_isFixedWing && !isMovingForward);
// don't update terrain offset state if there is no range finder and flying at low velocity or without GPS // don't update terrain offset state if there is no range finder and flying at low velocity or without GPS
if ((_onGround || !useGPS) && !useRangeFinder) { if ((_onGround || !useGPS) && !useRangeFinder) {