Hi all,
I'm trying to get the SimConnect_RequestGroundInfo() working. Below is my code I use to request ground information on a specific position. Idea is a spot, not a box, from 0m to 10000m.
hr = SimConnect_RequestGroundInfo(
_simConnectHandle,
REQUEST_ALT_POS,
40.86125,
28.4645,
0,
40.86125,
28.4645,
10000,
5,
5,
SIMCONNECT_GROUND_INFO_LATLON_FORMAT_DEGREES,
SIMCONNECT_GROUND_INFO_ALT_FORMAT_METERS,
SIMCONNECT_GROUND_INFO_SOURCE_FLAG_TERRAIN
);
The P3D client application logs this request:
> 32.72227 [ 0, 35]RequestGroundInfo:RequestID=1, minLat=40.86125, minLon=28.4645, minAlt=0.000000, maxLat=40.86125, maxLon=28.4645, maxAlt=10000.000000, dwGridWidth=5, dwGridHeight=5, eLatLonFormat=1, eAltFormat=0, eSourceFlags=65536
Two things:
1. No result data is received via SimConnect_GetNextDispatch().
2. The SDK doesn't describe the packet format of the received value (or I couldn't locate it)
Any ideas?
Thanks,
DevSim |