View Single Post
  #2   Spotlight this post!  
Unread 02-19-2016, 04:54 PM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: How to do two actions on the same time?

If I understand you correctly, you have something like:
Code:
motor1.set(1.0);
wait(3.0);
motor1.set(0.0);
To control two motors at the same time, you can just do:
Code:
motor1.set(1.0);
motor2.set(1.0);
wait(3.0);
motor1.set(0.0);
motor2.set(0.0);
__________________
Reply With Quote