HITL/SITL X-Plane: Improvements #11253
Open
+772
−451
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
New features for X-Plane HITL/SITL, mainly for use with https://github.com/Scavanger/INAV-X-Plane-XITL
HITL
SITL
Improved communication, only set simulator values via X-Plane DataRefs, no a mix with MSP.
Should not break compatibility with HITL Plugin 1.X or with "raw" X-Plane.
PR Type
Enhancement, New Feature
Description
This description is generated by an AI tool. It may have inaccuracies
Add support for X-Plane INAV-XITL plugin with DataRef-based communication for SITL/HITL modes
Implement new simulator features: RC input from joystick, RSSI, failsafe, current sensor, rangefinder
Refactor simulator MSP protocol to support version 3 with extended sensor data and SITL-specific handling
Add connection state management and dynamic DREF registration for X-Plane plugin detection
Support battery voltage/current, magnetometer, and RC failsafe simulation via X-Plane DREFs
Diagram Walkthrough
File Walkthrough
9 files
Refactor simulator MSP protocol to support V3Add current and rangefinder to simulator dataDefine MSP V3 and new HITL feature flagsEnable OSD in SITL mode via HITL flagAdd failsafe support to RC simulatorAdd failsafe setter function signatureIntegrate simulated current sensor dataImplement INAV-XITL plugin connection and DREFsAdd stdbool include for xplane header1 files
Fix GPS velocity handling for HITL mode2 files
Move RX_SIM and RANGEFINDER_FAKE to commonEnable RX_SIM and RANGEFINDER_FAKE globally3 files
Add reference to INAV-X-Plane-XITL pluginDocument INAV-XITL plugin for advanced featuresAdd INAV-XITL plugin documentation link