Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) throws InterruptedException {
- RobocadVMXTitan robot = new RobocadVMXTitan(false);
- long startTime = System.currentTimeMillis();
- // едет 10 секунд назад
- while (System.currentTimeMillis() - startTime < 10000){
- robot.setMotorSpeed0(30);
- robot.setMotorSpeed1(-30);
- }
- robot.setMotorSpeed0(0);
- robot.setMotorSpeed1(0);
- Thread.sleep(100);
- robot.stop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement