View Single Post
  #10   Spotlight this post!  
Unread 29-05-2004, 13:24
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: Template Project

Quote:
Originally Posted by Astronouth7303
I'm making a Template Project. What do you want in it?
You might add some debug/test routines. E.g.,

Code:
Set_Debug_Level (HIGH); // or maybe Set_Debug_Level (5), etc.
...
debug (msg, threshold); // i.e., if debug level < threshold, print msg
eq (some_var, some_val, severity); // i.e., if some_var!=some_val do action based on severity
// etc., more tests/debug features
Just a thought ... it's nice sometimes to write code based on certain tests, and since you don't always have the robot with you while coding, it can be helpful to print out errors where something unexpected occurrs, but then have it go silent when you are doing the competition ... but still have it ready to go if you change something and need to make sure it all works. Wow, I'm going to stop rambling now.