mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-19 14:25:16 +03:00
BOXSURFACE Mode now only for Multirotors
This commit is contained in:
parent
56a70ea620
commit
31190a070a
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ void initActiveBoxIds(void)
|
|||
#ifdef USE_GPS
|
||||
if (STATE(ALTITUDE_CONTROL) && (sensors(SENSOR_BARO) || (feature(FEATURE_GPS) && (STATE(AIRPLANE) || positionEstimationConfig()->use_gps_no_baro)))) {
|
||||
activeBoxIds[activeBoxIdCount++] = BOXNAVALTHOLD;
|
||||
activeBoxIds[activeBoxIdCount++] = BOXSURFACE;
|
||||
if (STATE(MULTIROTOR)) {
|
||||
activeBoxIds[activeBoxIdCount++] = BOXSURFACE;
|
||||
}
|
||||
}
|
||||
|
||||
const bool navReadyMultirotor = STATE(MULTIROTOR) && (getHwCompassStatus() != HW_SENSOR_NONE) && sensors(SENSOR_ACC) && feature(FEATURE_GPS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue