View Single Post
  #3   Spotlight this post!  
Unread 17-01-2015, 17:56
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: Command Based Programming

If you wrote the code by hand (rather than RobotBuilder generated) make sure that you are calling Scheduler.run() in the TeleopPeriodic method like this:
Code:
    public void teleopPeriodic() {
        Scheduler.getInstance().run();
    }
That's what actually causes the commands to run each iteration.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote