// RunNavigator.java // // A class that sets up and runs PathFollower // // Simon Parsons // 26th October 2013 // // Based on an example from Davide Grossi import lejos.nxt.*; public class RunNavigator{ public static void main(String[] args) throws Exception{ PathFollower pFollow = new PathFollower(); // Set the waypoints to define a square pFollow.newWaypoint(40, 0); pFollow.newWaypoint(40, 40); pFollow.newWaypoint(0, 40); pFollow.newWaypoint(0, 0); // Now follow the path defined by the waypoints pFollow.navigate(); } }