Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package nasiroboti;
- import com.ridgesoft.intellibrain.IntelliBrain;
- import com.ridgesoft.robotics.ContinuousRotationServo;
- public class NasiRoboti {
- public static void main(String[] args) {
- // TODO code application logic here
- ContinuousRotationServo lijeviMotor = new ContinuousRotationServo(IntelliBrain.getServo(1), false, 14);
- ContinuousRotationServo desniMotor = new ContinuousRotationServo(IntelliBrain.getServo(1), true, 14);
- lijeviMotor.setPower(8);
- desniMotor.setPower(8);
- try {
- Thread.sleep(1000);
- }
- catch (InterruptedException e) {
- }
- lijeviMotor.stop();
- desniMotor.stop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement