Advertisement
crackanddie

strhdygjklhgdfsdrghjk

Aug 19th, 2023
1,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. public static void main(String[] args) throws InterruptedException, IOException {
  2.  
  3.         Holder.LOG_LEVEL = Holder.LOG_ALL;
  4.         RobocadVMXTitan robot = new RobocadVMXTitan(false);
  5.  
  6.         long millis = LocalTime.now(ZoneOffset.UTC).get(ChronoField.MILLI_OF_DAY);
  7.         while (LocalTime.now(ZoneOffset.UTC).get(ChronoField.MILLI_OF_DAY) - millis < 20000)
  8.         {
  9.             robot.setMotorSpeed0(-20);
  10.             robot.setMotorSpeed1(20);
  11.         }
  12.         robot.setMotorSpeed0(0);
  13.         robot.setMotorSpeed1(0);
  14.         Thread.sleep(1000);
  15.         robot.stop();
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement