mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Merge pull request #2853 from shellixyz/msp_air_speed_message
Add MSP message for reading air speed
This commit is contained in:
commit
66a9fa2736
4 changed files with 15 additions and 2 deletions
|
@ -1285,6 +1285,14 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
|
|||
sbufWriteU16(dst, (uint16_t)timeConfig()->tz_offset);
|
||||
break;
|
||||
|
||||
case MSP2_INAV_AIR_SPEED:
|
||||
#ifdef USE_PITOT
|
||||
sbufWriteU32(dst, pitot.airSpeed);
|
||||
#else
|
||||
sbufWriteU32(dst, 0);
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue