View Single Post
  #12   Spotlight this post!  
Unread 09-02-2013, 17:33
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Code running slow

Quote:
Originally Posted by gman View Post
We have the Scheduler.getInstance().run() in the code already. I tried the SmartDashboard thing, its says it's running. I have print statements in the execute() method, they running, but only once every 10-15 seconds.
Can you put a print statement in the teleopPeriodic() method to see how often it (and Scheduler.run()) is getting called. It should be about every 20ms (50 times per second).

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote