|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.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 RotationPlatformpublic int getDirection()
RotationPlatform
getDirection in interface RotationPlatformpublic int getMaximumDirection()
RotationPlatform
getMaximumDirection in interface RotationPlatformpublic int getMinimumDirection()
RotationPlatform
getMinimumDirection in interface RotationPlatformpublic int getRotationSpeed()
RotationPlatform
getRotationSpeed in interface RotationPlatformpublic float getXOffset()
getXOffset in interface RotationPlatformpublic float getYOffset()
getYOffset in interface RotationPlatformpublic float getZOffset()
getZOffset in interface RotationPlatformpublic void scanLeft()
RotationPlatform
scanLeft in interface RotationPlatformpublic void scanRight()
RotationPlatform
scanRight in interface RotationPlatformpublic void setDirection(int angle)
RotationPlatform
setDirection in interface RotationPlatformangle - 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 RotationPlatformpublic void setMinimumDirection(int minAngle)
RotationPlatform
setMinimumDirection in interface RotationPlatformpublic void setRotationSpeed(int speed)
RotationPlatform
setRotationSpeed in interface RotationPlatformpublic void setXOffset()
RotationPlatform
setXOffset in interface RotationPlatformpublic void setYOffset()
setYOffset in interface RotationPlatformpublic void setZOffset()
setZOffset in interface RotationPlatformpublic void stopRotation()
RotationPlatform
stopRotation in interface RotationPlatformpublic boolean zero()
RotationPlatform
zero in interface RotationPlatform
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||