mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
No longer require MAG to unlock GPS related flight modes
This commit is contained in:
parent
1efdfabeeb
commit
f9d12a230a
1 changed files with 0 additions and 3 deletions
|
@ -220,9 +220,6 @@ void initActiveBoxIds(void)
|
||||||
|
|
||||||
const bool navFlowDeadReckoning = sensors(SENSOR_OPFLOW) && sensors(SENSOR_ACC) && positionEstimationConfig()->allow_dead_reckoning;
|
const bool navFlowDeadReckoning = sensors(SENSOR_OPFLOW) && sensors(SENSOR_ACC) && positionEstimationConfig()->allow_dead_reckoning;
|
||||||
bool navReadyPosControl = sensors(SENSOR_ACC) && feature(FEATURE_GPS);
|
bool navReadyPosControl = sensors(SENSOR_ACC) && feature(FEATURE_GPS);
|
||||||
if (STATE(MULTIROTOR)) {
|
|
||||||
navReadyPosControl = navReadyPosControl && getHwCompassStatus() != HW_SENSOR_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (STATE(ALTITUDE_CONTROL) && navReadyAltControl && (navReadyPosControl || navFlowDeadReckoning)) {
|
if (STATE(ALTITUDE_CONTROL) && navReadyAltControl && (navReadyPosControl || navFlowDeadReckoning)) {
|
||||||
ADD_ACTIVE_BOX(BOXNAVPOSHOLD);
|
ADD_ACTIVE_BOX(BOXNAVPOSHOLD);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue