1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Add MSP message for reading air speed

This commit is contained in:
Michel Pastor 2018-03-01 04:00:35 +01:00
parent 1a9663c59f
commit 85f98ecc01
4 changed files with 15 additions and 2 deletions

View file

@ -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;
}