Jump to content
The simFlight Network Forums

chazzie

Members
  • Posts

    1,589
  • Joined

  • Last visited

Everything posted by chazzie

  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
  14. I'm trying to get local time (hours and minutes), but I sometimes get a very high number, like 14453. Sometimes I get the correct hour and minute, like Hr=14 Min=22 Here's how I read FSUIPC: If FSUIPC_Read(&H238, 1, VarPtr(Tmp), dwResult) Then If FSUIPC_Process(dwResult) Then LocHr = Tmp End If End If Any thoughts?
  15. I have ArrICAO dim'd as a string, but when I use a string instead of Tmp (i.e. TmpStr) I get a program error and the program shuts down.
  16. I'm trying to get the final destination (airport) out of FSUIPC so I do not have to use the next waypoint ID, plus I'd like to get the distance to the final destination...
  17. I'm trying to get the GPS name string from FS, it says the length is 6 and the type is a string, however the program tends to hang and produce an error that asks me to send information to Microsoft. I'm programming in VB and it seems like I can only get numreric variables from FSUIPC but not strings. Here's a code-sample: If FSUIPC_Read(&H60A4, 6, VarPtr(Tmp), dwResult) Then If FSUIPC_Process(dwResult) Then ArrICAO = Tmp End If End If Text1.Text = ArrICAO This only produce a value around 20000, and not the ICAO which currently should be KPHX.
  18. Are you using both GamePort and USB joysticks (or other input devices)? Doing that will cause a problem, so unfortunatly you're forced to choose either USB or GamePort devices. Using an USB device that connects gameports is not an option, since the device will register as an actual gameport and hence not solving the problem. My vote would be for the USB sollution, if that is the case. If you only have one of them, I don't know what is wrong.
  19. I'll drink to that! I study to become a network technician... Try to configure a printer in a Windows 2003-based domain :P
  20. Just seemed strange to me, because it worked for awile, trough VB without user-registration...
  21. Why does FSUIPC refuse to accept the key sometimes when running it directly from the VB development interface? I used it earlier, rebooted and it won't run trough there now "One or more applications are not registered..." is the error message.
  22. I see... :P Well, I don't think there's one hard-core flightsimmer that don't know what FSUIPC is :D
  23. Hm Pete.. As I'm being heavily inspired by the Linux-world :) I came up with a small suggestion. Why not create a small logo that people can include in their programs, saying "Powered by FSUIPC" ? Forgive me if it already exists and I've missed it :D
×
×
  • 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.