Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi. I'm using fsuipc 3.70 and Delphi SDK. I've written an application to read some FS offset to show it into my application, but I've some problems:

- Heading (offset $0580): I can't read a right value. I read 4 bytes, and then I apply the next operation: ( value read * 360 ) / (65536*65536). But I don't see the rigth heading. Where is it?

- With some offset (for example, altitude), sometimes, it gives me wrong values. As I see, when I fly with Cessna about 800 - 900 feet, altitude read 60-80 feet. When I arrive 900 feet and up, then I read right altitude. It happens me with IAS to (about 90 nudes it read 6 nudes).

What happen?

Thanks.

Posted
Hi. I'm using fsuipc 3.70 and Delphi SDK. I've written an application to read some FS offset to show it into my application, but I've some problems:

- Heading (offset $0580): I can't read a right value. I read 4 bytes, and then I apply the next operation: ( value read * 360 ) / (65536*65536). But I don't see the rigth heading. Where is it?

- With some offset (for example, altitude), sometimes, it gives me wrong values. As I see, when I fly with Cessna about 800 - 900 feet, altitude read 60-80 feet. When I arrive 900 feet and up, then I read right altitude. It happens me with IAS to (about 90 nudes it read 6 nudes).

What happen?

No idea. Sorry, but you really do have to actually both develop AND debug your own programs. I can't do that for you too.

There are enough tools around to help -- FSInterrogate to compare values with, and the full logging features in FSUIPC. Have you tried using any of those? Also, I would really have thought that Delphi came with a debugger. Doesn't it?

Regards,

Pete

Posted

Hi. Yes. I'm using FS-Interrogate to confirm my reads, and it reads same as me.

For example, altitude indicator on FS say about 1700 feet. I read $0570, 8 bytes, and I take 4 higher bytes, and then, I do Value/0.3048 to convert metres to feet, and the result is 121 feet and not 1700 I'm expecting.

If I go to other altitude, for examplo 1434 feet, this operations gives me the correct value, 1434, compared to FS Cessna altitude indicator.

The same happen about 900 feet.

And the same happen with IAS and TAS.

I'm using Delphi debugger and windows calculator to do the operation manually, and I see that fsuipc don't give me the correct value.

thanks.

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.