Quote:
Originally Posted by eagle33199
From the doxygen output:
So what you're doing there is asking if you're in autonomous mode inside of your autonomous loop, and then doing nothing with that information!
When using an iterative robot, you don't need to call IsAutonomous() - the loop will only run while you are in autonomous, and will stop when you aren't. If you're running a simple robot (with no build in looping structure, you'll want to put something similar to:
Code:
void Autonomous(void)
{
while(IsAutonomous())
{
//do your autonomous stuff
watchdog.feed();
}
}
|
I think what he was trying to say (sorry if I get this wrong) is that his code works if he calls IsAutonomous(), but doesn't if he doesn't.
As I said in my previous response, I think that this is an issue with the stdout buffer not getting flushed.