Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package nasiroboti;
  2.  
  3. import com.ridgesoft.intellibrain.IntelliBrain;
  4. import com.ridgesoft.robotics.ContinuousRotationServo;
  5.  
  6. public class NasiRoboti {
  7.  
  8.     public static void main(String[] args) {
  9.         // TODO code application logic here
  10.         ContinuousRotationServo lijeviMotor = new ContinuousRotationServo(IntelliBrain.getServo(1), false, 14);
  11.         ContinuousRotationServo desniMotor = new ContinuousRotationServo(IntelliBrain.getServo(1), true, 14);
  12.        
  13.         lijeviMotor.setPower(8);
  14.         desniMotor.setPower(8);
  15.        
  16.         try {
  17.             Thread.sleep(1000);
  18.         }
  19.         catch (InterruptedException e) {
  20.         }
  21.         lijeviMotor.stop();
  22.         desniMotor.stop();
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement