1
0
Fork 0
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:
Konstantin Sharlaimov 2018-03-07 17:09:17 +10:00 committed by GitHub
commit 66a9fa2736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}