View Single Post
  #13   Spotlight this post!  
Unread 30-03-2015, 03:04
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

Or I could add
Code:
disabledInit(){
   Timer.start();
}
teleopInit(){
   if(Timer.getFPGATimestamp > 1.000){
      Timer.stop();
      Timer.reset();
   }else{
      shoulder.set(shoulderDocked);
      elbow.set(elbowDocked);
      Timer.stop();
      Timer.reset();
   }
 
}
Questions: Do I need the .stop() and .reset() or just one? does the .reset() start the timer again?
__________________

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