Need help capturing tinyG output in a C program

Home Forums TinyG TinyG Support Need help capturing tinyG output in a C program

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4509
    rickkaye
    Member

    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

    #4510
    alden
    Member

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.