yindengxie Posted August 9, 2018 Author Report Posted August 9, 2018 Hello Pete, If it is convenient for you, PLEASE you send me a short METAR weather example (RVA) which can run at the B000 for FSX. THANKS!
Pete Dowson Posted August 9, 2018 Report Posted August 9, 2018 3 hours ago, yindengxie said: n your FSX SDK, I found the NewWeather.h as follows, have you NewWeather.c program as example program? THANKS! No, sorry. 3 hours ago, yindengxie said: I have not found the Runway Visibility Range (RVA) in your NewWeather.h head file. Can I write values to C800 - CBFF to change RVA? As I have said before, I am NOT aware of any such facility in FSX ort P3D. did not not read my previous post? I am out now till the 18th. I suggest you do some research yourself. What do you expect FSX to do with your RVA setting in any case. Just put some fog on the runway only? Surely the RV range is only a report, not a setting? I don't see how it could be set separately to visibility! Pete
yindengxie Posted August 9, 2018 Author Report Posted August 9, 2018 Hello Pete, Just now, I read your previous post: "you'd need to set global Weather mode and set the weather change slider to zero to prevent the weather you set from being changed." Question: How to set the weather change slider to zero? THANKS, PETE!
Pete Dowson Posted August 9, 2018 Report Posted August 9, 2018 1 hour ago, yindengxie said: How to set the weather change slider to zero? Look in the FSX options. Move the weather change; rate slider to the extreme left! Or, to do it by program please do read the NWI readme where you will find this: Quote NW_DYNAMICS sets the FS2004 dynamic changes option to the value given in the uDynamics field. Write the latter first, then the command (in the same FSUIPC_Process is okay). A value of 0 sets dynamic changes off. This will be my last reply till at least the 16th as I am away till later that day. Pete
yindengxie Posted August 22, 2018 Author Report Posted August 22, 2018 Hello Pete, Thank you very much for you to give me so much help! Now I want to ask you the following question: Can I send (write) rain and snow parameters through your FSUIPC to pass to FSX? If Yes, can you give me a short C sample codes? THANKS!
Pete Dowson Posted August 22, 2018 Report Posted August 22, 2018 2 hours ago, yindengxie said: Can I send (write) rain and snow parameters through your FSUIPC to pass to FSX? Yes, the NWI interface I already pointed you to supports weather settings, or oyu can use METAR strings. Rain and snow are part of the weather. It is all one interface, eventually via Simconnect into FS. I don't have any specific samples apart from the old ones in the SDK. If you are new to programming you'd probably be better off using .NET and Paul Henty's excellent DLL (see the special Subforum about this, above). Pete
yindengxie Posted August 23, 2018 Author Report Posted August 23, 2018 Hello Pete, Good Morning! Thank you very much for your quick reply. In the past months, I have worked on your FSUIPC, I like to program to interface with your FSUIPC directly. I will try your NWI interface again. If there are any questions, I expect to get your help. THANKS!
yindengxie Posted August 23, 2018 Author Report Posted August 23, 2018 Hello Pete, I have one question to request your help: Offset 0x0020 Ground Altitude in Meters. Is the Ground Altitude the Elevation of Scenery? If not, can I read from your FSUIPC to get the Elevation of Scenery? THANKS!
Pete Dowson Posted August 23, 2018 Report Posted August 23, 2018 1 hour ago, yindengxie said: Offset 0x0020 Ground Altitude in Meters. Is the Ground Altitude the Elevation of Scenery? If not, can I read from your FSUIPC to get the Elevation of Scenery? It is as it says, the elevation of the ground -- that is the elevation you'd experience on the ground! It won't tell you the elevation of, say, a skyscraper in the scenery below you! Pete
yindengxie Posted August 23, 2018 Author Report Posted August 23, 2018 Hello Pete, Does the your Ground Altitude mean Height Above Terrain (HAT) ? THANKS!
Pete Dowson Posted August 23, 2018 Report Posted August 23, 2018 1 hour ago, yindengxie said: Does the your Ground Altitude mean Height Above Terrain (HAT) ? NO! It is the ground altitude. The altitude of the GROUND. The stuff you can walk on! I don't understand what isn't clear? Pete
yindengxie Posted August 23, 2018 Author Report Posted August 23, 2018 Hello Pete, We use the Elevation, Height Above Terrain (HAT) and Altitude. While reading your 0x0020 or 0x0B4C values, I print out the reading-values that are always constants. THNAKS for your help!
yindengxie Posted August 27, 2018 Author Report Posted August 27, 2018 Hello Pete, There is one question to request your help: Only after the FSUIPC is registered, can we use FSX METAR format between the 0xB000 - 0xB7FF to set weather cases? THANKS, PETE!
Pete Dowson Posted August 28, 2018 Report Posted August 28, 2018 14 hours ago, yindengxie said: Only after the FSUIPC is registered, can we use FSX METAR format between the 0xB000 - 0xB7FF to set weather cases? No. Access to offsets is available to all programs with or without registration. For commercial products a fee is negotiated for commercial use. Pete
yindengxie Posted October 19, 2018 Author Report Posted October 19, 2018 Hello Pete, Thank you very much for your great help in the past. I use the offset 0x0238 to set the hour of local time (0-23) OK. Now I want to set (write ) season to request your support. At the offset 0x0248, the season values can only be read, not write. What the offset can the season values be written? THANKS and BEST REGARDS! Dengxie
Pete Dowson Posted October 19, 2018 Report Posted October 19, 2018 2 minutes ago, yindengxie said: What the offset can the season values be written? I don't think that can be set. you'd need to set a suitable date -- day number and year, offsets 023E, 0240. Pete
yindengxie Posted October 19, 2018 Author Report Posted October 19, 2018 THANKS PETE! So quickly to answer my question. Good night ! Nice weekend! Dengxie
yindengxie Posted October 23, 2018 Author Report Posted October 23, 2018 Hello Pete, Good Evening! Is it possible to read the height above ground level (AGL) from FSX or P3D? What offset ? if Yes. THANKS and BEST REGARDS! Dengxie
Pete Dowson Posted October 23, 2018 Report Posted October 23, 2018 You'd have to read both the altitude of the aircraft and the ground and subtract the latter from the former. Pete
yindengxie Posted October 23, 2018 Author Report Posted October 23, 2018 THANKS PEPE! You always answer my questions very quickly. I know the altitude of the aircraft. How to get (read) the ground? Which offset? Best Regards! Dengxie
John Dowson Posted October 23, 2018 Report Posted October 23, 2018 Check the offset status document: 0x0020 (4 bytes) or 0x0b4c (2bytes). John
yindengxie Posted October 23, 2018 Author Report Posted October 23, 2018 Dear MR. John Dowson, THANKS FOR YOUR HELP! I will read the values and test it tomrrow. Good Night and Best Regards! Dengxie
yindengxie Posted October 25, 2018 Author Report Posted October 25, 2018 Dear MR. John Dowson, Thank you very much for your help. Today, my program reads offset x0020 (4 bytes) or 0x0b4c (2bytes) to get GROUND ALTITUDE, but these ground altitude values ONLY to show current runway elevation. During flying, reading GROUND ALTITUDE values always are same as the runway elevation, no change. What is my mistake? Thanks and Best Regards! Dengxie
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now