|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.navigation.SimpleNavigator lejos.navigation.TachoNavigator
public class TachoNavigator
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.
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 |
---|
public TachoNavigator(Pilot aPilot)
aPilot
- the pilotpublic TachoNavigator(float wheelDiameter, float trackWidth, Motor leftMotor, Motor rightMotor, boolean reverse)
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 choicerightMotor
- 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.public TachoNavigator(float wheelDiameter, float trackWidth, Motor leftMotor, Motor rightMotor)
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 choicerightMotor
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |