View Single Post
  #3   Spotlight this post!  
Unread 15-01-2009, 10:16
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: IsAutonomous() function

I think that this is because calling IsAutonomous() on every pass through the continuous code causes the print buffer to be flushed.

Try calling the function "fflush()" (no arguments) after your printf() statement without calling IsAutonomous().

As an aside, you probably won't want to print in the XXXContinuous() functions. It will go so fast you won't be able to read it. The XXXPeriodic() functions might be a better fit here.

Last edited by Jared Russell : 15-01-2009 at 10:30.
Reply With Quote