public RConsoleDisplay(Odometer odo, TwoWheeledRobot robot, LightPoller linePoller) { this.odo = odo; this.robot = robot; this.csFlagReader = robot.getColourSensorFlag(); this.csLineReader = robot.getColourSensorLineReader(); this.usLeft = this.robot.getLeftUSSensor(); this.usRight = this.robot.getRightUSSensor(); this.linePoller = linePoller; this.lcdTimer = new Timer(LCD_REFRESH, this); // start the timer lcdTimer.start(); }
public void stop() { lineSensorL.stop(); lineSensorR.stop(); odoCorrectionTimer.stop(); }
public void start() { odoCorrectionTimer.start(); }