Skip to content

Commit 81d5f59

Browse files
committed
Merge PR #11253: HITL/SITL X-Plane improvements
- MSP_SIMULATOR v2/v3 protocol: refactor into readMspSimulatorValues() and mspProcessSimulatorCommand(); v3 uses 2-byte flags field - New HITL flags: HITL_RANGEFINDER, HITL_CURRENT_SENSOR, HITL_SIM_RC_INPUT, HITL_FAILSAFE_TRIGGERED, HITL_SITL_MODE - Fix GPS velocity: exclude HITL mode from validVelNE path (same as SITL) - battery.c: inject simulated current when HITL_CURRENT_SENSOR active - displayport_msp_osd.c: enable OSD vtxActive in SITL mode - runtime_config: add SIMULATOR_MSP_VERSION_3 and new HITL flag bits - common.h: promote RX_SIM and RANGEFINDER_FAKE out of SITL-only target.h - xplane.h: add stdbool.h include and simXPlaneClose() declaration - xplane.c: INAV-XITL plugin with DataRef state machine; add atomic thread safety and simXPlaneClose() from maintenance-9.x
2 parents 824f582 + 73193e8 commit 81d5f59

15 files changed

Lines changed: 782 additions & 476 deletions

File tree

docs/SITL/SITL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ INAV SITL communicates for sensor data and control directly with the correspondi
1818

1919
AS SITL is still an inav software, but running on PC, it is possible to use HITL interface for communication.
2020

21-
INAV-X-Plane-HITL plugin https://github.com/RomanLut/INAV-X-Plane-HITL can be used with SITL.
21+
[INAV-X-Plane-HITL](https://github.com/RomanLut/INAV-X-Plane-HITL) or [INAV-X-Plane-XITL](https://github.com/Scavanger/INAV-X-Plane-XITL) plugin can be used with SITL.
2222

2323
## Sensors
2424
The following sensors are emulated:

docs/SITL/X-Plane.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ X-Plane is not a model flight simulator, but is based on real world data and is
77
## Aircraft
88
It is recommended to use the "AR Wing" of the INAV HITL project: https://github.com/RomanLut/INAV-X-Plane-HITL
99

10+
## INAV Plugin
11+
For advanced SITL featues (like OSD, virtual RX, simulated hardware failures, power train simulation) you can use the [INAV-X-Plane-XITL plugin](https://github.com/Scavanger/INAV-X-Plane-XITL)
12+
1013
## General settings
1114
In Settings / Network select "Accept incoming connections".
1215
The port can be found under "UDP PORTS", "Port we receive on". If no connection is established, the port can be changed.

docs/development/Hardware In The Loop (HITL) plugin for X-Plane.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@
88

99
https://github.com/RomanLut/INAV-X-Plane-HITL
1010

11+
or for latest HITL features (INAV >= 9.0)
12+
13+
**INAV-X-Plane-XITL**
14+
15+
https://github.com/Scavanger/INAV-X-Plane-XITL
16+
1117
HITL technique can be used to test features during development. Please check page above for installation instructions.

0 commit comments

Comments
 (0)