|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.robotics.SimplePlatform
public class SimplePlatform
Constructor Summary | |
---|---|
SimplePlatform(TachoMotor directionMotor)
|
|
SimplePlatform(TachoMotor directionMotor,
boolean invertDir)
|
|
SimplePlatform(TachoMotor directionMotor,
boolean invertDir,
double ratioDir)
|
Method Summary | |
---|---|
int |
getAbsoluteDirection(Pose pose)
Includes the direction of the pilot in the calculation of the real angle of the sensor (as opposed to the relative direction of the sensor) NOTE: There is no corresponding setAbsoluteDirection() method because the angle the Pilot would rotate to and the angle the sensor would rotate to would be ambiguous. |
int |
getDirection()
Get the direction the sensor will face. |
int |
getMaximumDirection()
Cables or other hindrances can restrict movement of the platform. |
int |
getMinimumDirection()
Cables or other hindrances can restrict movement of the platform. |
int |
getRotationSpeed()
Gets the speed the platform rotates, in degrees per second. |
float |
getXOffset()
|
float |
getYOffset()
|
float |
getZOffset()
|
void |
scanLeft()
Starts rotating counterclockwise (left). |
void |
scanRight()
Starts rotating to the clockwise (right). |
void |
setDirection(int angle)
Rotates the sensor to the desired angle. |
void |
setMaximumDirection(int maxAngle)
Cables or other hindrances can restrict movement of the platform. |
void |
setMinimumDirection(int minAngle)
Cables or other hindrances can restrict movement of the platform. |
void |
setRotationSpeed(int speed)
Sets the speed the platform should rotate, in degrees per second. |
void |
setXOffset()
The actual central axis of the sensor rotator will reside off center from the actual robot center. |
void |
setYOffset()
|
void |
setZOffset()
|
void |
stopRotation()
Stops a rotation in motion from one of the rotate methods, like rotateLeft() or rotateUp(). |
boolean |
zero()
This method calibrates the direction and elevation to the zero angle position, which is pointing in the same direction as the robot and facing horizontal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePlatform(TachoMotor directionMotor)
public SimplePlatform(TachoMotor directionMotor, boolean invertDir)
public SimplePlatform(TachoMotor directionMotor, boolean invertDir, double ratioDir)
Method Detail |
---|
public int getAbsoluteDirection(Pose pose)
RotationPlatform
getAbsoluteDirection
in interface RotationPlatform
public int getDirection()
RotationPlatform
getDirection
in interface RotationPlatform
public int getMaximumDirection()
RotationPlatform
getMaximumDirection
in interface RotationPlatform
public int getMinimumDirection()
RotationPlatform
getMinimumDirection
in interface RotationPlatform
public int getRotationSpeed()
RotationPlatform
getRotationSpeed
in interface RotationPlatform
public float getXOffset()
getXOffset
in interface RotationPlatform
public float getYOffset()
getYOffset
in interface RotationPlatform
public float getZOffset()
getZOffset
in interface RotationPlatform
public void scanLeft()
RotationPlatform
scanLeft
in interface RotationPlatform
public void scanRight()
RotationPlatform
scanRight
in interface RotationPlatform
public void setDirection(int angle)
RotationPlatform
setDirection
in interface RotationPlatform
angle
- The angle, in degrees, to rotate to. 0 to 360, increasing counter clockwise from 0, the starting position.public void setMaximumDirection(int maxAngle)
RotationPlatform
setMaximumDirection
in interface RotationPlatform
public void setMinimumDirection(int minAngle)
RotationPlatform
setMinimumDirection
in interface RotationPlatform
public void setRotationSpeed(int speed)
RotationPlatform
setRotationSpeed
in interface RotationPlatform
public void setXOffset()
RotationPlatform
setXOffset
in interface RotationPlatform
public void setYOffset()
setYOffset
in interface RotationPlatform
public void setZOffset()
setZOffset
in interface RotationPlatform
public void stopRotation()
RotationPlatform
stopRotation
in interface RotationPlatform
public boolean zero()
RotationPlatform
zero
in interface RotationPlatform
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |