I am using P3D 3.4, calling SimConnect_WeatherRequestCloudState and all I am getting is an array of ones.
float maxLat = (float)pS->latitude + .1;
float minLat = (float)pS->latitude - .1;
float maxLon = (float)pS->longitude + .1;
float minLon = (float)pS->longitude - .1;
float maxAlt = (float)pS->altitude + 10;
float minAlt = (float)pS->altitude - 10;
hr = SimConnect_WeatherRequestCloudState(hSimConnect, 30, minLat, minLon, minAlt, maxLat, maxLon, maxAlt, 0);
The latitude and longitude is correct (somewhere over Florida). I receive the reply here and the reply looks normal with the correct request ID...
case SIMCONNECT_RECV_ID_CLOUD_STATE:
{
SIMCONNECT_RECV_CLOUD_STATE* pWxData = (SIMCONNECT_RECV_CLOUD_STATE*)pData;
Show(pWxData);
break;
}
I have tried increasing and decreasing the area, increasing the altitude. I've set the sim for clear skies and solid overcast...it's always 1s. Any clues?