mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-14 03:49:58 +03:00
Fix logic condition VSpeed constraint not allowing the value to be negative
This commit is contained in:
parent
251e9f1192
commit
282c3b132e
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ static int logicConditionGetFlightOperandValue(int operand) {
|
|||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_VERTICAL_SPEED: // cm/s
|
||||
return constrain(getEstimatedActualVelocity(Z), 0, INT16_MAX);
|
||||
return constrain(getEstimatedActualVelocity(Z), INT16_MIN, INT16_MAX);
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_TROTTLE_POS: // %
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue