Jump to content
The simFlight Network Forums

How to calculate DME


Recommended Posts

Hello,

I'am working on a VB pogram to monitor 7 segment displays on my radiostack. There for I need to read out the DME. I get a value of 5 numbers when I use offset 0C29 (for DME1). Can You tell me how to recalculate these 5 numbers to get the distance in nm? :?:

Regards,

:wink:

Link to comment
Share on other sites

I get a value of 5 numbers when I use offset 0C29 (for DME1). Can You tell me how to recalculate these 5 numbers to get the distance in nm?

As clearly documented (!), they are not "5 numbers" but an ASCII character string, ready for display. e.g "18.9" for 18.9 nm. If you want them in binary you'll need to convert them from character form to binary using something like sscanf or whatever the equivalent is in the language you are using.

Regards,

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.