1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 16:55:29 +03:00

Merge pull request #6564 from iNavFlight/dzikuvx-autolevel

Autolevel flight mode and pitch trim option
This commit is contained in:
Paweł Spychalski 2021-05-15 08:40:00 +02:00 committed by GitHub
commit c3a7f72c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 144 additions and 5 deletions

View file

@ -3648,6 +3648,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();