telemetry/crsf: add pitot airspeed telemetry (CRSF 0x0A)#11459
telemetry/crsf: add pitot airspeed telemetry (CRSF 0x0A)#11459aspence 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.
|
Thanks for this. There is another open PR that is similar, #11168 Can you please check out these related PRs and let us know what you think? Add support for MS5525DSO digital airspeed sensor Revert "[crsf] add temperature, RPM and AirSpeed telemetry" Fix CRSF airspeed, rpm, and temperature telemetry corruption from PR #11025 CRSF Baro Altitude and Vario, AirSpeed (fixed conflicts from #11100) |
|
Test firmware build ready — commit Download firmware for PR #11459 228 targets built. Find your board's
|
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.