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:
parent
283c33b097
commit
f565b9ae4d
3 changed files with 28 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue