by johno » Wed Aug 02, 2006 7:17 pm
While I don't know of anyone who has implemented such a thing, it would be relatively easy to add in:
-You'd add a command to enable this one-shot tracking mode ("EO\n" for enable one-shot)
-You'd add a command to disable this one-shot tracking mode ("DO\n" for disable one-shot)
-You'd add a command to retrieve the last set of tracking data ("GT\n" for get tracking data)
The enabling/disabling of one-shot tracking would be almost identical to the normal processing for the Enable Tracking and Disable Tracking commands, with the exception that an extra flag would be stored to indicate to the FrameMgr whether or not the tracking info should be sent out the serial port or not. This flag would be set based on the reception of the "GT\n" command, and once a set of tracking data was sent out, the flag would be cleared.
I'm sure there are other ways of doing this as well, but this is the first that came to mind. Let us know if you end up implementing this; I'd love to add it into the main source.
-John O
Site Admin