View Single Post
  #5   Spotlight this post!  
Unread 05-11-2011, 12:23
Mk.32's Avatar
Mk.32 Mk.32 is offline
Registered User
AKA: Mark
FRC #2485 (W.A.R. Lords)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: San Diego
Posts: 770
Mk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud of
Re: Should this code work as intended?

Hm, you shouldn't need to loop the .set methods. I would also set the module the Digital SideCar is plugged into.
Are you sure your jags are wired correctly, when running the code do you notice the LEDs on them change color?
Also are you running auton mode in the Driver Station?

For basic auton code you can do:

Jag.set(.5);
Timer.Delay(4);
Jaq.set(0);

That will run the motor at speed .5 for 4 secs then shut it off.
__________________
Engineering mentor: Team 2485: WARLords 2013-

Team President: Team 3647 2010-2013
Reply With Quote