1
0
Fork 0
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:
ctzsnooze 2024-10-29 08:49:00 +11:00
parent a700bff52a
commit 0f1e7bae2c
3 changed files with 8 additions and 6 deletions

View file

@ -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