Jump to content
The simFlight Network Forums

Recommended Posts

Posted

A request for Pete,

Would you be able to redevelop GPSOut so that a chosen GPS sentence is output to a raw text file instead of a comms port. If it's too much bother to output all, how about just $GPRMC. I'd gladly do it if you could spare me the code ;)

Thanks

Posted

Would you be able to redevelop GPSOut so that a chosen GPS sentence is output to a raw text file instead of a comms port. If it's too much bother to output all, how about just $GPRMC.

What would be the purpose of such a thing?

I'd gladly do it if you could spare me the code wink.gif

It would be far easier to implement it as a simple Lua plug-in. It would only need to be a few lines in Lua, reading the relevant offsets, formatting the line and writing to a file, based on a 1 second timer event.

I always tend towards solving simple requests in simple ways, and the Lua plug-ins facility was exactly intended for such purposes.

Regards

Pete

Posted

What would be the purpose of such a thing?

It would be far easier to implement it as a simple Lua plug-in. It would only need to be a few lines in Lua, reading the relevant offsets, formatting the line and writing to a file, based on a 1 second timer event.

I always tend towards solving simple requests in simple ways, and the Lua plug-ins facility was exactly intended for such purposes.

Regards

Pete

Thanks Pete, I'll try with LUA. I'm helping a colelge student with a project (he needs to see how accurately people can fly in FS using VFR!)

Posted

Thanks Pete, I'll try with LUA. I'm helping a colelge student with a project (he needs to see how accurately people can fly in FS using VFR!)

To get you started, check out the example Lua plug-in called "record to csv". That isn't making GPS type records, but a comma-separated-values file containing lots of relevant information. That format is readable directly into Excel or other spreadsheets for easy analysis.

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.