Quote:
Originally Posted by caffel
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!