View Single Post
  #4   Spotlight this post!  
Unread 03-11-2011, 13:03
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: Should this code work as intended?

In SimpleRobot the autonomous (and teleop) methods are called only once. You should have a loop around your driving command and an explicit set(0.0) after it. e.g.

while(isAutonomous()){
test.set(0.75);
}
test.set(0.0);

but yes, your code should start the Jag on PWM 1 at 75%.
Reply With Quote