// RunMonitor.java // // A main program to run the monitor on the robot. // // Simon Parsons // 13th October 2013 // // Based on Davide Grossi's RunMonitor.java import lejos.nxt.Button; // Turn on the motors and monitor the robot until a button is pressed. public class RunMonitor{ public static void main(String[] args) throws Exception{ StandardRobot me = new StandardRobot(); RobotMonitor myMonitor = new RobotMonitor(me, 400); me.startMotors(); myMonitor.start(); Button.waitForAnyPress(); } }