Jump to content
The simFlight Network Forums

Offset &H07F2 (V/S Value)


Recommended Posts

Hi guys,

as the FSUIPC Documentation or FS interrogate says, i extract the offset &H07F2.

The results are ok as far as i have a positive climbrate in the FS (like 2200). But when i change the rate to a negative value, the offset delivers a value like for example 65436 for a descentrate of -100 ft.

Has anyone a idea how to work with that?

Thanks

Stefan

Link to comment
Share on other sites

Hi guys,

as the FSUIPC Documentation or FS interrogate says, i extract the offset &H07F2.

The results are ok as far as i have a positive climbrate in the FS (like 2200). But when i change the rate to a negative value, the offset delivers a value like for example 65436 for a descentrate of -100 ft.

Has anyone a idea how to work with that?

Thanks

Stefan

Link to comment
Share on other sites

Why the long? The var is 2 byte long. I think that if you pass a long the two most signigficant bytes will be 0 on return (or something that is on 0z7f4 0x7f5 I don't know) and the negative numbers will be intrepreted as positive like in the word. If you need a long for after processing you must cast the result to it after retrieving.

Best

José

Link to comment
Share on other sites

Why the long? The var is 2 byte long. I think that if you pass a long the two most signigficant bytes will be 0 on return (or something that is on 0z7f4 0x7f5 I don't know) and the negative numbers will be intrepreted as positive like in the word. If you need a long for after processing you must cast the result to it after retrieving.

Best

José

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.