mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
Merge pull request #9824 from iNavFlight/dzikuvx-no-longer-require-mag-for-pos-control
No longer require MAG to unlock GPS related flight modes
This commit is contained in:
commit
5d0c0dde63
1 changed files with 0 additions and 3 deletions
|
@ -219,9 +219,6 @@ void initActiveBoxIds(void)
|
|||
|
||||
const bool navFlowDeadReckoning = sensors(SENSOR_OPFLOW) && sensors(SENSOR_ACC) && positionEstimationConfig()->allow_dead_reckoning;
|
||||
bool navReadyPosControl = sensors(SENSOR_ACC) && feature(FEATURE_GPS);
|
||||
if (STATE(MULTIROTOR)) {
|
||||
navReadyPosControl = navReadyPosControl && getHwCompassStatus() != HW_SENSOR_NONE;
|
||||
}
|
||||
|
||||
if (STATE(ALTITUDE_CONTROL) && navReadyAltControl && (navReadyPosControl || navFlowDeadReckoning)) {
|
||||
ADD_ACTIVE_BOX(BOXNAVPOSHOLD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue