1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Multirotor modes removed from Planes

This commit is contained in:
ErNis 2021-11-15 16:09:22 +02:00
parent a6c7d81c1d
commit 56a70ea620

View file

@ -185,12 +185,12 @@ void initActiveBoxIds(void)
activeBoxIds[activeBoxIdCount++] = BOXHEADINGHOLD;
if (sensors(SENSOR_ACC) || sensors(SENSOR_MAG)) {
if ((sensors(SENSOR_ACC) || sensors(SENSOR_MAG)) && STATE(MULTIROTOR)) {
activeBoxIds[activeBoxIdCount++] = BOXHEADFREE;
activeBoxIds[activeBoxIdCount++] = BOXHEADADJ;
}
if (STATE(ALTITUDE_CONTROL)) {
if (STATE(ALTITUDE_CONTROL) && STATE(MULTIROTOR)) {
activeBoxIds[activeBoxIdCount++] = BOXFPVANGLEMIX;
}