View Single Post
  #1   Spotlight this post!  
Unread 27-03-2005, 11:56
dm0ney's Avatar
dm0ney dm0ney is offline
Will Code For Food (Food Optional)
AKA: Deepak Mishra
None #0217 (The ThunderChickens)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Shelby Twp., MI
Posts: 48
dm0ney will become famous soon enough
Send a message via AIM to dm0ney
Making Debugging Easier

I've had several ideas to make debugging easier on us programmers or even just checking out the robot between matches.

Currently we have an autonomous selector switch on our robot. I inserted a special 'debug mode' that we can put any autonomous sequence in and test it and when we run out of time and cant reload code, its not a big deal.
Stemming off that, I was wondering what other ideas or solutions fellow programmers have had?

My next change to our code once the 'No Work' period is ended for our team (Nationals) is going to use a toggle switch on our OI to enable or disable printfs for pots and encoders. Those two are by far the two most used printfs on our team, so I hope to make it easier for us programmers to work.

Also, has any team used the Dashboard to read pot or encoder values? That was going to be another project on the horizon which I believe is exempt from the 'No Work' period because its not actual work on the robot.
Currently we use the dashboard to trim joysticks, although we did use it to monitor pwms before we got our robot to test code.

A few ideas in the works for later this year or next year are:

Three Pots that can plug into the OI and be used to tweak PID gains rapidly.
Utilizing the leds on the OI we have to enable us to deadband joysticks sans dashboard
Mini Dashboard viewer instead of a laptop (possibly pocketpc or the like)
Wireless programmer for use in those few hours programmers actually get the robot right before shipping it away.
???

These are all ideas which we have YET to get working but please add what programming easter eggs you have put into the code to make your life easier.


EDIT:
Dashbord Config of pots and encoders in although since only 4 digits, I have a call that looks somethin like this for encoders:
Code:
User_ByteX = (int) abs( (int) Get_Encoder_Counts(LEFT)) % 1000;
Trim joysticks done sans laptop using the userbytes so dashboard or OI itself, still working on a more compact dashboard display.
__________________

Alumni
Team #217, The ThunderChickens



Student, Class of 2009
California Institute of Technology



Last edited by dm0ney : 28-03-2005 at 01:39.