Package xbot.common.controls.sensors
Class XGyro
java.lang.Object
xbot.common.controls.sensors.XGyro
- All Implemented Interfaces:
AutoCloseable
,DataFrameRefreshable
- Direct Known Subclasses:
InertialMeasurementUnitAdapter
,MockGyro
,Pigeon2Adapter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final XGyro.ImuType
protected final xbot.common.controls.io_inputs.XGyroIoInputsAutoLogged
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
In degreesprotected XGyro.ImuType
getPitch()
getRoll()
abstract boolean
isBroken()
boolean
void
Consumes and processes inputs from the device or subsystem.protected abstract void
updateInputs
(XGyroIoInputs inputs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.AutoCloseable
close
-
Field Details
-
imuType
-
deviceName
-
io
protected final xbot.common.controls.io_inputs.XGyroIoInputsAutoLogged io
-
-
Constructor Details
-
XGyro
-
-
Method Details
-
isBroken
public abstract boolean isBroken() -
getImuType
-
getHeading
In degrees -
getRoll
-
getPitch
-
getYawAngularVelocity
-
getAccelerationX
public double getAccelerationX() -
getAccelerationY
public double getAccelerationY() -
getAccelerationZ
public double getAccelerationZ() -
getAcceleration
public double getAcceleration() -
isConnected
public boolean isConnected() -
updateInputs
-
refreshDataFrame
public void refreshDataFrame()Description copied from interface:DataFrameRefreshable
Consumes and processes inputs from the device or subsystem.- Specified by:
refreshDataFrame
in interfaceDataFrameRefreshable
-