1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Improved fixed wing detection.

This commit is contained in:
mikeller 2019-11-17 14:05:07 +13:00
parent 33ba8a043e
commit e0a6f1ab14
9 changed files with 52 additions and 33 deletions

View file

@ -938,3 +938,25 @@ float mixerGetThrottle(void)
{
return mixerThrottle;
}
mixerMode_e getMixerMode(void)
{
return currentMixerMode;
}
bool isFixedWing(void)
{
switch (currentMixerMode) {
case MIXER_FLYING_WING:
case MIXER_AIRPLANE:
case MIXER_CUSTOM_AIRPLANE:
return true;
break;
default:
return false;
break;
}
}