View Single Post
  #4   Spotlight this post!  
Unread 16-02-2014, 09:48
Andrew Lobos Andrew Lobos is offline
Registered User
FRC #0225 (TechFire)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Lancaster, PA
Posts: 61
Andrew Lobos is a jewel in the roughAndrew Lobos is a jewel in the roughAndrew Lobos is a jewel in the rough
Re: Commands immediately canceling

Are you sure ballsucker.isSwitchSet() in isFinished() is returning what you think it is? If some electrical issue is making that always return true, your function will end after the first loop.

Besides going in with a multimeter, you can just throw a System.out.println(ballsucker.isSwitchSet()); in and see what the cRIO is getting. Logging to SmartDashboard could also get the job done
Reply With Quote