Commit 81d5f59
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.x15 files changed
Lines changed: 782 additions & 476 deletions
File tree
- docs
- SITL
- development
- src/main
- fc
- io
- rx
- sensors
- target
- SITL
- sim
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
0 commit comments