Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws InterruptedException, IOException {
- Holder.LOG_LEVEL = Holder.LOG_ALL;
- RobocadVMXTitan robot = new RobocadVMXTitan(false);
- long millis = LocalTime.now(ZoneOffset.UTC).get(ChronoField.MILLI_OF_DAY);
- while (LocalTime.now(ZoneOffset.UTC).get(ChronoField.MILLI_OF_DAY) - millis < 20000)
- {
- robot.setMotorSpeed0(-20);
- robot.setMotorSpeed1(20);
- }
- robot.setMotorSpeed0(0);
- robot.setMotorSpeed1(0);
- Thread.sleep(1000);
- robot.stop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement