View Single Post
  #15   Spotlight this post!  
Unread 03-09-2007, 18:50
SamC SamC is offline
.
AKA: Sam Couch
FRC #0103 (Cybersonics)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Philadelphia, PA
Posts: 583
SamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond repute
Re: Interactive DashBoard

Quote:
Originally Posted by caffel View Post
To teach, we need to measure and view everything about the robot's internals.
Some people can't understand w/o that. Almost everyone is a better debugger with more information about what the robot was sensing (and doing) when a failure occurred.
This isn't a "good" answer to that request, but why not use EasyC's built in terminal window and graphic display? You could setup a debug function that would output the different values and such, and put it on a timer. Here is a rough idea of how you could do that.
Code:
void Debug ( void )
{
   StartTimer ( DebugTimer ) ; //DebugTimer set as 1
   DebugClock = GetTimer ( DebugTimer ) ; 
    if ( DebugClock >= 26 ) //26ms
    {
      PresetTimer ( DebugTimer , 0 ) ; //reset timer to 0
      PrintToScreen ( "SENSOR VALUE IS: %d\n" , (int)SENSORvariable ) ; //output "SENSOR VALUE IS:" + the sensor value (SENSORvariable)
    }
}
Its simple, and not nearly as 'flashy' as a dashboard program, but it will get the job done... Good luck!