Skip to content

telemetry/crsf: add pitot airspeed telemetry (CRSF 0x0A)#11459

Open
aspence wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
aspence:ajs-crsf-airspeed-telem
Open

telemetry/crsf: add pitot airspeed telemetry (CRSF 0x0A)#11459
aspence wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
aspence:ajs-crsf-airspeed-telem

Conversation

@aspence
Copy link
Copy Markdown

@aspence aspence commented Mar 26, 2026

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

  • INAV 9.0.x maintenance branch
  • Radiomaster NEXUS-XR target
  • Matek 4525 airspeed sensor (TE 4525DO-DS5AI001DP) on I2C
  • EdgeTX 2.11.3 on TX16S Mk2
  • ExpressLRS link (CRSF)

Results - BENCH ONLY SO FAR

  • Airspeed sensor visible in INAV Configurator
  • CRSF airspeed discovered on EdgeTX ("ASpd")
  • GPS and other telemetry unaffected
  • Telemetry verified updating in real time

Notes

  • Update rate depends on CRSF scheduling and ELRS telemetry ratio
  • At 250 Hz / 1:64 telemetry, updates occur roughly every ~6 seconds
  • This matches expected bandwidth sharing across CRSF telemetry frames

This enables direct airspeed telemetry for stall detection, TECS tuning,
and wind estimation without requiring GPS ground speed.

… 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant