1
0
Fork 0
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:
Paweł Spychalski 2024-04-02 19:05:03 +02:00 committed by GitHub
commit 5d0c0dde63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);