Need help capturing tinyG output in a C program

From the original Synthetos forum (2011–2025)

Started by rickkaye on in TinyG Support. 1 reply, last activity Sep 11, 2013.

#

I'm controlling the tinyG from a C program running on a RaspberryPi. Issuing commands is no problem but I'm having trouble capturing the tinyG's output. I'm sure this is due to my lack of experience in communications programming over USB. Does anyone know of any sample code out there that does this that I could look at for inspiration?

TIA

Rick

Staff #

No sample code, but I highly recommend using the JSON mode if this is what you are looking to do. Set up a status report with all the variables you want to track and set status verbosity to filtered. This way you will receive reports when any of these values change, and you can receive timed reports during movement by setting the status interval (e.g. 250 milliseconds for 4 reports / second)

--Alden

This topic is from the original forum (September 2013). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.