07-07-2008 06:22 AM
07-07-2008 07:21 AM
07-07-2008 07:29 AM - edited 07-07-2008 07:29 AM
Just looking at a small portion of your code... There's a lot of cleaning up to do.
Having a nested loop inside an Event case is a bad design. You should change the architecture of the code to a Producer/Consumer loop with Data. Using queues to send event information to the consumer loop which would be a state machine. And there should be No Local Variable..
07-07-2008 08:16 AM
07-07-2008 09:48 AM - edited 07-07-2008 09:48 AM
rjwilliams wrote:
... I'm fairly sure I can record the position with the 'GetPosition' function for the motors, but am a little loston how to get them to write to the same file, and whether or not those positions would correspond to thevoltages taken there.
07-07-2008 10:56 AM