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:
parent
33ba8a043e
commit
e0a6f1ab14
9 changed files with 52 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue