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

Autolevel implementation

This commit is contained in:
Pawel Spychalski (DzikuVx) 2021-02-18 09:48:19 +01:00
parent f1122c7cf9
commit fc7aeaf299
8 changed files with 72 additions and 8 deletions

View file

@ -3586,6 +3586,11 @@ bool navigationIsControllingThrottle(void)
return navigationInAutomaticThrottleMode() && (getMotorStatus() != MOTOR_STOPPED_USER);
}
bool navigationIsControllingAltitude(void) {
navigationFSMStateFlags_t stateFlags = navGetCurrentStateFlags();
return (stateFlags & NAV_CTL_ALT);
}
bool navigationIsFlyingAutonomousMode(void)
{
navigationFSMStateFlags_t stateFlags = navGetCurrentStateFlags();