Jump to content
The simFlight Network Forums

Recommended Posts

'declare it only once on top - class/form level

Dim APHeadingValue As Offset(Of UInteger) = New FSUIPC.Offset(Of UInteger)(&H7CC)


'could be done in a shorter and or different way

Dim APHaeding As Integer

APHeading = 350 (assign heading)

'whatever you calculate before, p.e. Hdg + a Wind-Drift-Value

If APHeading > 360 Then

APHeading = APHeading - 360

ElseIf APHeading < 0 Then

APHeading = 360 + APHeading

End If

'AP Heading Value in ° 16384 = 90°

APHeading = APHeading * 182

If APHeading > 65536.0 Then APHeading = 65536.0

APHeadingValue.Value = APHeading 'set Hdg to AP

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.

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.


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