public class GyroPerceptor extends Perceptor implements IGyroPerceptor
Constructor and Description |
---|
GyroPerceptor(java.lang.String name)
Default constructor, initializes the gyro to (0, 0, 0)
|
GyroPerceptor(java.lang.String name,
float rotationX,
float rotationY,
float rotationZ)
Assignment constructor
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getGyro()
Get gyro values in the form of a Vector3D object
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public GyroPerceptor(java.lang.String name)
name
- Perceptor namepublic GyroPerceptor(java.lang.String name, float rotationX, float rotationY, float rotationZ)
name
- Perceptor namerotationX
- X rotationrotationY
- Y rotationrotationZ
- Z rotationpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getGyro()
IGyroPerceptor
getGyro
in interface IGyroPerceptor