mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-15 04:15:38 +03:00
Corrected user actions and updated docs
This commit is contained in:
parent
b2ad70329b
commit
b5da2ca7d3
2 changed files with 45 additions and 35 deletions
|
@ -494,19 +494,19 @@ static int logicConditionGetWaypointOperandValue(int operand) {
|
|||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER1_ACTION:
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber-1].p3 == NAV_WP_USER1;
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber].p3 == NAV_WP_USER1;
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER2_ACTION:
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber-1].p3 == NAV_WP_USER2;
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber].p3 == NAV_WP_USER2;
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER3_ACTION:
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber-1].p3 == NAV_WP_USER3;
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber].p3 == NAV_WP_USER3;
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER4_ACTION:
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber-1].p3 == NAV_WP_USER4;
|
||||
return posControl.waypointList[NAV_Status.activeWpNumber].p3 == NAV_WP_USER4;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue