lejos.navigation
Class TachoNavigator

java.lang.Object
  extended by lejos.navigation.SimpleNavigator
      extended by lejos.navigation.TachoNavigator
All Implemented Interfaces:
Navigator

Deprecated. in 0.8, use SimpleNavigator

public class TachoNavigator
extends SimpleNavigator

This class exists only for backward compatibility with release 0.7
See the javadoc for SimpleNavigator if you don't know how this class works.

Author:
Roger Glassey

Constructor Summary
TachoNavigator(float wheelDiameter, float trackWidth, Motor leftMotor, Motor rightMotor)
          Deprecated. Allocates a TachoNavigator object and initializes it with a TachoPilot The x and y values and the direction angle are all initialized to 0, so if the first move is forward() the robot will run along the x axis.
TachoNavigator(float wheelDiameter, float trackWidth, Motor leftMotor, Motor rightMotor, boolean reverse)
          Deprecated. Allocates a TachoNavigator object and initializes it with a TachoPilot The x and y values and the direction angle are all initialized to 0, so if the first move is forward() the robot will run along the x axis.
TachoNavigator(Pilot aPilot)
          Deprecated. Allocates a TachoNavigator with the Pilot that you supply The x and y coordinate values and the direction angle are all initialized to 0, so if the first move is forward() the robot will run along the x axis.
 
Method Summary
 
Methods inherited from class lejos.navigation.SimpleNavigator
angleTo, backward, distanceTo, forward, getAngle, getPilot, getX, getY, goTo, goTo, isMoving, rotate, rotate, rotateLeft, rotateRight, rotateTo, rotateTo, setMoveSpeed, setPosition, setSpeed, setTurnSpeed, stop, travel, travel, turn, turn, turn, updatePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TachoNavigator

public TachoNavigator(Pilot aPilot)
Deprecated. 
Allocates a TachoNavigator with the Pilot that you supply The x and y coordinate values and the direction angle are all initialized to 0, so if the first move is forward() the robot will run along the x axis.

Parameters:
aPilot - the pilot

TachoNavigator

public TachoNavigator(float wheelDiameter,
                      float trackWidth,
                      Motor leftMotor,
                      Motor rightMotor,
                      boolean reverse)
Deprecated. 
Allocates a TachoNavigator object and initializes it with a TachoPilot The x and y values and the direction angle are all initialized to 0, so if the first move is forward() the robot will run along the x axis.

Parameters:
wheelDiameter - The diameter of the wheel, usually printed right on the wheel, in centimeters (e.g. 49.6 mm = 4.96 cm = 1.95 in)
trackWidth - The distance from the center of the left tire to the center of the right tire, in units of your choice
rightMotor - The motor used to drive the right wheel e.g. Motor.C.
leftMotor - The motor used to drive the left wheel e.g. Motor.A.
reverse - If motor.forward() drives the robot backwards, set this parameter true.

TachoNavigator

public TachoNavigator(float wheelDiameter,
                      float trackWidth,
                      Motor leftMotor,
                      Motor rightMotor)
Deprecated. 
Allocates a TachoNavigator object and initializes it with a TachoPilot The x and y values and the direction angle are all initialized to 0, so if the first move is forward() the robot will run along the x axis.

Parameters:
wheelDiameter - The diameter of the wheel, usually printed right on the wheel, in centimeters (e.g. 49.6 mm = 4.96 cm = 1.95 in)
trackWidth - The distance from the center of the left tire to the center of the right tire, in units of your choice
rightMotor - The motor used to drive the right wheel e.g. Motor.C.
leftMotor - The motor used to drive the left wheel e.g. Motor.A.