Jump to content
The simFlight Network Forums

chazzie

Members
  • Posts

    1,589
  • Joined

  • Last visited

About chazzie

  • Birthday 01/01/1970

Profile Information

  • Location
    Sweden, somewhere south of the OSK VOR...

chazzie's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. That's what it's for basically. You can only write a few values, such as coordinates and some other variables. Other than that it's just reading from FS-memory space. If you want to make a program, you will need to contact Pete Dowson for a key to use FSUIPC. It is free if you will be releasing your software as freeware, otherwise you must pay a license fee. Have a look in his forum here on simflight for information.
  2. You should ask this question in Pete Dowson's FSUIPC forum here. He's the author of the brilliant piece of software.
  3. I guess I stared myself blind in agony over seeing the % chars above :P Thanks, I'll get it working now.
  4. I'm trying to get the TOTAL amount of fuel (in lbs) that's loaded into the aircraft at a given time. I've only found how to get % readings via FSUIPC... Is there an offset I missed?
  5. Tried another (stock) aircraft and it worked. Tried another add-on aircraft and it worked. Tried the first aircraft again and it worked for some reason. Re-started and tried with the first aircraft and it didn't work. Tried the add-on aircraft again and it worked. Switched back and it didn't work. I found that the main power switch was turned off in the first A/C, which seem to have caused the problem. Regards, Patrik
  6. Hi All! I'm trying to get the gear position from FS to make a co-pilot say "Gear going down" - "Gear down - locked" etc. My problem is that I cannot seem to get any values inbetween 0 and 16383. The next reading after pressing the gear down button is 16383, just as it's 0 when retracting the gear. The code is as follows if anyone can see any problems: If FSUIPC_Read(&HBEC, 4, VarPtr(Tmp), dwResult) Then If FSUIPC_Process(dwResult) Then Nose_Gear_Pos = Tmp End If End If all according to the SDK.. Regards, Patrik
  7. I've had similar experiences in VB6, which I traced back to either wrong declarations (ie. Integer instead of Long) or erroneous processing of the returned value. Might not be your problem, but every thought could be the key, no :D
  8. Forget it, I had a look in the SDK and saw that I was formatting the data erroneously, it should be 65536# * 65536# * 65536# * 65536# instead of 10001750# * 65536# * 65536#. Also, it should be divided by 360 and not 90. Regards and a lot of thanks for the help! Patrik
  9. I got the latitude to work, however, I can't seem to get a decent value for the Longitude... I get a value at 12345,000000 something instead of -124,4323 which is the correct one. I just modified the code from Lat... If FSUIPC_Read(&H568, 8, VarPtr(Fake64Bit), dwResult) Then If FSUIPC_Process(dwResult) Then CurLong = Fake64Bit * 10000# CurLong = CurLong * 90# / (10001750# * 65536# * 65536#) End If End If Any Ideas?
  10. I've soloved this another way, I did not need to get the ICAO from FS at this moment, but I'll see if I'll use it later. Thanks anyways! Patrik
  11. I saw that, however I was uncertain wether it would provide me with decimal values or not. Regards, Patrik
  12. Well, the topic says it all :) I want to take the units provided by FS and convert them into decimal Latitude and Longitude. I'm working in VB6, so if anyone has an idea, please share. Patrik
  13. Thanks a bunch rickalty! Seems like the only difference was to dim the value as Byte rather than Integer. My project moves on :D Patrik
×
×
  • 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.