mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 19:40:27 +03:00
Changes after testing and docs update
This commit is contained in:
parent
ba8da95562
commit
9aa6e2fb82
2 changed files with 15 additions and 10 deletions
|
@ -164,12 +164,17 @@ IPF can be edited using INAV Configurator user interface, of via CLI
|
||||||
| 0 | Is WP | boolean `0`/`1` |
|
| 0 | Is WP | boolean `0`/`1` |
|
||||||
| 1 | Current Waypoint Index | Current waypoint leg. Indexed from `1`. To verify WP is in progress, use `Is WP` |
|
| 1 | Current Waypoint Index | Current waypoint leg. Indexed from `1`. To verify WP is in progress, use `Is WP` |
|
||||||
| 2 | Current Waypoint Action | Action active in current leg. See ACTIVE_WAYPOINT_ACTION table |
|
| 2 | Current Waypoint Action | Action active in current leg. See ACTIVE_WAYPOINT_ACTION table |
|
||||||
| 3 | Distance to next Waypoint | Distance to next WP in metres |
|
| 3 | Next Waypoint Action | Action active in next leg. See ACTIVE_WAYPOINT_ACTION table |
|
||||||
| 4 | Distance from Waypoint | Distance from the last WP in metres |
|
| 4 | Distance to next Waypoint | Distance to next WP in metres |
|
||||||
| 5 | User Action 1 | User Action 1 is active on this waypoint leg [boolean `0`/`1`] |
|
| 5 | Distance from Waypoint | Distance from the last WP in metres |
|
||||||
| 6 | User Action 2 | User Action 2 is active on this waypoint leg [boolean `0`/`1`] |
|
| 6 | User Action 1 | User Action 1 is active on this waypoint leg [boolean `0`/`1`] |
|
||||||
| 7 | User Action 3 | User Action 3 is active on this waypoint leg [boolean `0`/`1`] |
|
| 7 | User Action 2 | User Action 2 is active on this waypoint leg [boolean `0`/`1`] |
|
||||||
| 8 | User Action 4 | User Action 4 is active on this waypoint leg [boolean `0`/`1`] |
|
| 8 | User Action 3 | User Action 3 is active on this waypoint leg [boolean `0`/`1`] |
|
||||||
|
| 9 | User Action 4 | User Action 4 is active on this waypoint leg [boolean `0`/`1`] |
|
||||||
|
| 10 | Next Waypoint User Action 1 | User Action 1 is active on the next waypoint leg [boolean `0`/`1`] |
|
||||||
|
| 11 | Next Waypoint User Action 2 | User Action 2 is active on the next waypoint leg [boolean `0`/`1`] |
|
||||||
|
| 12 | Next Waypoint User Action 3 | User Action 3 is active on the next waypoint leg [boolean `0`/`1`] |
|
||||||
|
| 13 | Next Waypoint User Action 4 | User Action 4 is active on the next waypoint leg [boolean `0`/`1`] |
|
||||||
|
|
||||||
|
|
||||||
#### ACTIVE_WAYPOINT_ACTION
|
#### ACTIVE_WAYPOINT_ACTION
|
||||||
|
|
|
@ -589,19 +589,19 @@ static int logicConditionGetWaypointOperandValue(int operand) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER1_ACTION_NEXT_WP:
|
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER1_ACTION_NEXT_WP:
|
||||||
return (NAV_Status.activeWpIndex > 0) ? ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER1) == NAV_WP_USER1) : 0;
|
return ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER1) == NAV_WP_USER1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER2_ACTION_NEXT_WP:
|
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER2_ACTION_NEXT_WP:
|
||||||
return (NAV_Status.activeWpIndex > 0) ? ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER2) == NAV_WP_USER2) : 0;
|
return ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER2) == NAV_WP_USER2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER3_ACTION_NEXT_WP:
|
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER3_ACTION_NEXT_WP:
|
||||||
return (NAV_Status.activeWpIndex > 0) ? ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER3) == NAV_WP_USER3) : 0;
|
return ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER3) == NAV_WP_USER3);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER4_ACTION_NEXT_WP:
|
case LOGIC_CONDITION_OPERAND_WAYPOINTS_USER4_ACTION_NEXT_WP:
|
||||||
return (NAV_Status.activeWpIndex > 0) ? ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER4) == NAV_WP_USER4) : 0;
|
return ((posControl.waypointList[NAV_Status.activeWpIndex].p3 & NAV_WP_USER4) == NAV_WP_USER4);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue