mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
warn if posHold mode requested but throttle not above airmode activation point
This commit is contained in:
parent
a700bff52a
commit
0f1e7bae2c
3 changed files with 8 additions and 6 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "build/debug.h"
|
||||
#include "common/filter.h"
|
||||
#include "common/maths.h"
|
||||
#include "fc/core.h"
|
||||
#include "fc/rc.h"
|
||||
#include "fc/runtime_config.h"
|
||||
|
||||
|
@ -218,6 +219,10 @@ bool positionControl(void) {
|
|||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!wasThrottleRaised()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isNewDataForPosHold()) {
|
||||
posHold.gpsDataIntervalS = getGpsDataIntervalSeconds(); // interval for current GPS data value 0.01s to 1.0s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue