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