Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete, Hi all.

I have had tremendous success with the GPSOut module, thank you very much for a fine product! It was refreshing to see something like that work for me first time around considering I have no FS development experience or knowledge. It even outputted GPS data to another application (PocketFMS) on the same computer running FS - I connected my two COM ports together :wink:

Pete, I would be grateful for some information on the FS variables/data exported to this module. If you could perhaps speak a little about the information extracted, from exactly where, and about any conversions that take place. Also, in your opinion is it possible to have FS driven by GPS data input?

If any of the above is bordering on the cheeky, please say so. Many thanks.

Posted

I would be grateful for some information on the FS variables/data exported to this module. If you could perhaps speak a little about the information extracted, from exactly where, and about any conversions that take place.

If you download the FSUIPC SDK from http://www.schiratti.com/dowson you will find a Programmaer's Guide which lists all the information which can be obtained.

Also, in your opinion is it possible to have FS driven by GPS data input?

You could write a program to do something of the sort, via FSUIPC, but I don't know how smooth you could make it. Certainly you'd need some sophisticated code to interpolate values between GPS readouts, which are typically once a second or so.

Regards,

Pete

Posted

Thanks for that. Found what I was looking for.

Would you mind performing a worked example of how to extract Lat info from offsets 0560 and 0564 using the hi/lo method, as I can't get a 64-bit string using FSInterrogator. I've tried working through your procedure but am going wrong somewhere.

Thanks.

Posted

Would you mind performing a worked example of how to extract Lat info from offsets 0560 and 0564 using the hi/lo method, as I can't get a 64-bit string using FSInterrogator.

64-bit number, you mean, not string.

In FS interrogator you get the high part converted and this gives a good approximation. You can do the same in the lower part and add the two together. The only thing to be careful of is the sign -- the lower part is unsigned, so you add it to the high part if the high part is positive, subtract it if negative.

Depending on what language and compiler you are using it may support 64-bit integers in any case. They may be called "long long", for example. Check the data types in your language reference.

I've tried working through your procedure but am going wrong somewhere.

It would be easier for you to show us what you are doing, then someone familiar with the language you are using can help. You haven't even mentioned it. :)

Regards,

Pete

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.