Tom DeVito 02.05.2011

Start: 5:30pm

  • Continued the work started on Friday
  • Added more comments and fixed spacing to make code more legible
  • Did somewhat of an overhaul on how the ComUtil class works.  Most methods were changed and many were added.  I think I was missing an important part of the concept of how this should work before.
  • Added a WAITING state.  This state is set whenever a command is sent and its waiting for a response.  While in this state it only checks for a response.  A response only comes after the command is completed.
  • Added a set state method.  This checks if its in the proper state for a change to occur.  setStates can only be done when the currect state is READY.
  • Changed the processing of incoming messages and responses
  • I feel the new approach makes things more predictable, so there should be less issues with messages being sent at the wrong times.
  • I need to finish up some stuff, but sometime tomorrow, I would appreciate if Phil reviewed the code.

End: 9:30pm

#NOTE:  The opportunity to Send and Receive data have to be in each single pass.  Otherwise this class will have to run on a faster loop then the rest of the system to accommodate multiple passes.