telemetry/crsf: add pitot airspeed telemetry (CRSF 0x0A)#11459
Open
aspence wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
Open
telemetry/crsf: add pitot airspeed telemetry (CRSF 0x0A)#11459aspence wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
aspence wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
Conversation
… very quickly bench tested. Built on Mac OS Tahoe on M2 Pro. Tested on Radiomaster NEXUS-XR target with Matek 4525 Airspeed sensor on I2C on connector C. Connection to INAV configurator 9.0.2 works and appears normal. After enabling sensor and confirming it shows up in sensors on INAV configurator, was able to see in Discover New Telemetry on EdgeTX 2.11.3 on a Radiomaster TX16S Mark 2. GPS still working. Needs further testing including flight. Update rate is very slow - at 250Hz link and 1:64 telemetry, get one ASpd telemetry update every 6 seconds or so. Could mess with INAV telemetry scheduling. Using telemetry index 0x0A as is ELRS standard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds CRSF telemetry output for airspeed derived from the pitot sensor.
When a pitot sensor is present (SENSOR_PITOT), INAV now emits CRSF telemetry
frame 0x0A (Airspeed) using the standard CRSF airspeed format:
uint16_t airspeed (km/h * 10)
The value is derived from getAirspeedEstimate(), which returns cm/s.
This is converted to CRSF units using:
airspeed_kmh_x10 = cm/s * 36 / 100
The frame is only scheduled when SENSOR_PITOT is active, matching existing
sensor-conditional telemetry behavior (baro, vario, GPS, etc.).
Tested configuration
Results - BENCH ONLY SO FAR
Notes
This enables direct airspeed telemetry for stall detection, TECS tuning,
and wind estimation without requiring GPS ground speed.