View Single Post
  #13   Spotlight this post!  
Unread 30-03-2015, 02:55
WillNess's Avatar
WillNess WillNess is offline
Programmer
AKA: Will Ness
FRC #4944 (The Hi Fives)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: United States
Posts: 90
WillNess is just really niceWillNess is just really niceWillNess is just really niceWillNess is just really nice
Re: PID & One Second Delay Between Auto and TeleOp

Do you guys think this would work?
Code:
robotInit(){
   boolean = false;
}
autonomousPeriodic(){
   boolean = true;
}
teleopInit(){
   if(boolean == true){
      shoulder.set(shoulderDocked);
      elbow.set(elbowDocked);
   }
   boolean = false;
}
The thing is I'd need to reset the roboRio if I wanted to ever test autonomous and teleop NOT in practice mode.
__________________

Outreach Lead // Lead Programmer // Junior

2014 FRC:
Rookie Allstar, Highest Rookie Seed & Semifinalist @ Utah
Rookie Allstar, Highest Rookie Seed & Semifinalist @ Colorado
2015 FRC:
Creativity In Engineering & Semifinalist @ Arizona West
Reply With Quote