1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-14 03:49:58 +03:00

Ability to read current waypoint index as part of LC

This commit is contained in:
Pawel Spychalski (DzikuVx) 2020-09-21 10:51:17 +02:00
parent 283c33b097
commit f565b9ae4d
3 changed files with 28 additions and 0 deletions

View file

@ -466,6 +466,14 @@ static int logicConditionGetFlightOperandValue(int operand) {
return axisPID[PITCH];
break;
case LOGIC_CONDITION_OPERAND_FLIGHT_WAYPOINT_INDEX:
return NAV_Status.activeWpNumber;
break;
case LOGIC_CONDITION_OPERAND_FLIGHT_WAYPOINT_ACTION:
return NAV_Status.activeWpAction;
break;
default:
return 0;
break;