View Single Post
  #1   Spotlight this post!  
Unread 02-19-2016, 02:46 PM
gofmannir gofmannir is offline
Registered User
AKA: Nir Gofman
FRC #2096 (RoboActive)
Team Role: Programmer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Israel
Posts: 11
gofmannir is an unknown quantity at this point
How to do automatic action in the teleop?

Hello
I'm trying to implement that when I'm press a button on the joystick the robot starting an automatic actions (in the teleop periodic)...
for example when pressing a button 3 it will called a custom method:

Code:
if(stick.getRawButton(3)){
     startAutoMoving();
}
But I'm still want the all the other statements and the other action still will work - which means the I cant use here the delay() method...

Any ideas?
Reply With Quote