Jump to content
The simFlight Network Forums


  • Posts

  • Joined

  • Last visited

About chrieger

  • Birthday 01/01/1970

Contact Methods

  • Website URL

chrieger's Achievements


Newbie (1/14)



  1. Thanks for your help! heading = (Heading_I_want * 65536 * 65536) / 360 seems to work.
  2. Thanks for your help, maybe it is a problem in writing and thinking in english. Sorry for my confusing questions, but I already stopped my programmings in this....
  3. I need this height displayed in FS. But I also can not get the results with this: 0020 4 Ground altitude in Metres x 256. (see also offset 0B4C)
  4. Yes I did, and I now which variables I need, but I have problems calculating the correct value. Sorry, maybe I did not asked coorect, but I am not very good in comunicating in english Here is one example I tried: Call FSUIPC_Write(&H580, 4, VarPtr(Heading), dwResult) Call FSUIPC_Process(dwResult) I tried giving it directly and trying to recalculate: heading * (65536# * 65536#) * 360# Both did not st the plane in FS correct. I think that VB is not really the easiest way to do these operations?
  5. OK, I did try it: Call FSUIPC_Read(&HB4C, 2, VarPtr(x), dwResult) Call FSUIPC_Process(dwResult) I really do not get the correct height like I see in FS window (STrg + z) Peter I also tried to read directly the value for x, but it also does not read correct. I am reading Heading LAT and LON without any trouble, but the height seem not like I want.. Thanks Christoph
  6. I found some here in the Forum, but am really not happy with the result. Here is what I found: Public Function Ground_Altitude() As Single ' meters Altitude MSL of ground under plane. Dim x As Long Dim y As Single Dim dwResult As Long Call FSUIPC_Read(&H7D4, 4, VarPtr(x), dwResult) Call FSUIPC_Process(dwResult) y = x If y > 32767 Then y = y - 65534 Ground_Altitude = y * 3.28083989501312 Label4.Caption = Ground_Altitude End Function But I will get not the same rsult as the FS9 will show me? Can somebody help? CHristoph
  7. Hi, I searched for some time here in the forum for information, how to use FSUIPC_Read. I found something and it works fine. Thanks for all who help here!!! But know I want to Write severel THings to FS9, but really are not very successful.... I want to go to a special Koordinate, Altitude and Heading. But Most of the time my calculation does not work... Does somebody have the correkt variables and calculations to send to FSUIPC? Thanks for your help Christoph Rieger
  • 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.