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:
commit
c3a7f72c66
12 changed files with 144 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue