Jump to content
The simFlight Network Forums

GPSOut to plain text file


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!)

Link to comment
Share on other sites

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

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.