Jump to content
The simFlight Network Forums

Play with GPS Offsets


Recommended Posts

Hi Paul,

I would like to print those offsets (P62/70)

6010
6018
6020
6030
6048
6078
6081
608C
6094
60A4
60E4
60E8
60EC
61A0

offsets but I have no idea what type of offset is (string, integer, Int32, Short, etc..)

  Dim gps_distance As Offset(Of Integer) = New Offset(Of Integer)(&H60EC)

for in the future don't ask how to declare offsets

this is for this topic :

Thanks

Regards Fred

Link to comment
Share on other sites

Hi Fred,

There is a table in the UserGuide.pdf that tells you how to work out which VB Types to use. This is in the 2.4 download package found here:

http://forum.simflight.com/topic/74848-fsuipc-client-dll-for-net-version-24/

See page 6.

For the offsets you listed:

If they are 8 Bytes and the description says "floating point double" then declare them (Of Double).

If the description says string then declare as string and set the stated size: e.g. for 60A4:

Dim gps_nextWaypoint As Offset(Of String) = New Offset(Of String)(&H60A4, 6)

4 byte (32-bit) integers are (Of Integer).

2 byte (16-bit) Integers are (Of Short).

Paul

Link to comment
Share on other sites

Hi Paul,

Thanks I need to read again... p6

issues with

FSUIPCConnection.Open()
FSUIPCConnection.AirportsDatabase.Load()

Seems to lock my app simple form with correct way to connect and watch and catch ex

Two versions of RC7 in the forums

1) give me errors

2) No errors but nothing in db airports

Regards Fred

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.