mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
AP_NavEKF2: remove default clause in setAidingMode
All values from the enumeration should be handled in this switch; adding a default will hide a compiler warning which may be useful.
This commit is contained in:
parent
53e36931fb
commit
3774aa6619
@ -257,12 +257,9 @@ void NavEKF2_core::setAidingMode()
|
|||||||
rngBcnTimeout = true;
|
rngBcnTimeout = true;
|
||||||
gpsNotAvailable = true;
|
gpsNotAvailable = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// check to see if we are starting or stopping aiding and set states and modes as required
|
// check to see if we are starting or stopping aiding and set states and modes as required
|
||||||
if (PV_AidingMode != PV_AidingModePrev) {
|
if (PV_AidingMode != PV_AidingModePrev) {
|
||||||
@ -332,9 +329,6 @@ void NavEKF2_core::setAidingMode()
|
|||||||
lastRngBcnPassTime_ms = imuSampleTime_ms;
|
lastRngBcnPassTime_ms = imuSampleTime_ms;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always reset the position and velocity when changing mode
|
// Always reset the position and velocity when changing mode
|
||||||
|
Loading…
Reference in New Issue
Block a user