1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 03:19:58 +03:00

MSP command to get radar position of other planes from esp32radar

This commit is contained in:
Jeff Hendrix 2025-01-02 23:04:39 -07:00 committed by Ray Morris
parent 27eaf08005
commit 0861a44903
2 changed files with 19 additions and 10 deletions

View file

@ -1737,6 +1737,13 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
}
break;
#endif
case MSP2_COMMON_GET_RADAR_GPS:
for (uint8_t i = 0; i < RADAR_MAX_POIS; i++){
sbufWriteDataSafe(dst, &radar_pois[i].gps, sizeof(gpsLocation_t));
}
break;
default:
return false;
}

View file

@ -36,4 +36,6 @@
#define MSP2_COMMON_SET_MSP_RC_LINK_STATS 0x100D //in message Sets the MSP RC stats
#define MSP2_COMMON_SET_MSP_RC_INFO 0x100E //in message Sets the MSP RC info
#define MSP2_COMMON_GET_RADAR_GPS 0x100F //get radar position for other planes
#define MSP2_BETAFLIGHT_BIND 0x3000