Jump to content
The simFlight Network Forums

DKing86

Members
  • Posts

    10
  • Joined

  • Last visited

About DKing86

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

DKing86's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. You can assign each engine's condition lever to the applicable engine's propeller axis in FSX. Since I have assigned the throttles to my throttle quadrant levers, I assigned propeller axis that controls all four engines to the throttle lever on my CH control yoke. This feature is handy when shutting down the engines at the end of my flight, but other that I don't see a need for it. Hope this helps. D. King
  2. Hi Teo, The following are the formulas I use in VB to get Altitude in MSL and Ground (RADAR) Altitude. 'Altitude in MSL Dim BaroCorr As Long, AtmosCorr As Long, CorrDiff As Single Dim lngAltitude As Long, lngMeterAlt1 As Long, lngMeterAlt2 As Long, lngMillibars as Long, lngPressQNH as Long Dim lngGrdAlt As Long 'Use the following offsets for Altitude MSL 'I store each offset value in a long integer 'The following is not code; it is only intended to identify the offsets you need lngMillibars = &H330 (Size 2, 16-bit) lngPressQNH = &HEC6 (Size 2, 16-bit) lngMeterAlt1 = &H570 (Size 4, 32-bit) lngMeterAlt2 = &H574 (Size 4, 32-bit) BaroCorr = (145442.2 * (1 - (((lngMillibars / 16) * 0.02953) / 29.92126) ^ 0.190261)) 'correction due to the baro setting AtmosCorr = (145442.2 * (1 - (((lngPressQNH / 16) * 0.02953) / 29.92126) ^ 0.190261)) 'correction due to the actual atmospheric pressure CorrDiff = BaroCorr - AtmosCorr lngAltitude = Round((lngMeterAlt1 * 3.28084 / 4294967296#) + (lngMeterAlt2 * 3.28084), 4) - CorrDiff 'for Ground Altitude lngGrdAlt = &H20 (Size 4, 32-bit) AGL_Alt = Round(lngAltitude + CorrDiff, 0) - (Round(((lngGrdAlt / 256) * 3.2808) + 12, 0)) This may seem a little complicated but if you can get it to work, I think you'll see it accomplishes everything that you need. The corrections are necessary in MS flight sim to avoid erroneous ground altitude readings when the altimeter is not set correctly. In real aircraft radar altitude display is not be affected by baro settings. Hope this helps.
  3. Scruffyduck, are you seeing much of a performance increase when switching to VB.Net? I've been considering doing the same thing but am reluctant to do so.
  4. Thanks, I've got my code working great now. I haven't got VB.NET yet. I'll see if your code in VB6.
  5. OKay....got some of the values to work.....Lat, Long, Alt, Hdg Grd Spd. One of the original problems I had was the code I was using (VB) did not like Hex values up at F000. I cured the problem by converting the numbers to decimal form and referencing the address in this format versus Hex. This is weird since all the other data was retrieved using Hex values. Oh well, whatever works. Now at least, I've got some data displayed to work with. Thanks again Pete.
  6. Ahhhhh....now it makes sense. Not that I'm insulted by the suggestion that I'm a newby to computers all together, but just remember this; I'm sure there are a few things I can twist you into knots about too. Once again, thanks for your help. I'll try not to sound so lame next time. D. King
  7. Hey does anyone know where I can get a weather radar control that will take inputs from fsuipc and display on a screen that I develop. Sorta along the lines of the controls available by Global Majic (they do not make one).
  8. Mayby I should try to explain what I'm looking for another way. Let say I want to view the values using FS Interrogate. When looking at FS Interrogate, I have an address to the left ("F080") and values that appear in columns labeled 8 bit, 16 bit and so on. To get the ID number of the 1st aircraft, would I retrieve the value from the 32 bit column of F080? What about LAT, do I go to the F082 line or do I read another column of F080. The same question stands for LONG and altitude as well? Is this easier for you to understand?
  9. OKay, the way I use the FSUIPC is by Offset and Size as given in your FSUIPC for Programmers guide. All of my functions utilize both offset and size. For example, to retrieve the Ground Altitude I use "H020" and "4" in a simple function written by Chris Brett. I know to use "HF080" for AI traffic but do not know the "size" values I need, since they are not listed in your handy guide. The information I need is there, but not in the form (or table) that I am used to. Thanks Pete,
  10. Man I hate to ask a rookie question, but I am not clear on the the AI (TCAS) data provided by FSUIPC. I am using visual basic and don't expect any help in that area. I can handle that part. However, I do need to know how the offsets are broken down past offet F000. For example, do I go to offset F080 for the latitude of aircraft 1, F082 for the longitude, F084 for the altitude. Or is all the information provided at one offset? Thanks in advance,
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.