Package xbot.common.controls.sensors
Class XGyro
java.lang.Object
xbot.common.controls.sensors.XGyro
- All Implemented Interfaces:
DataFrameRefreshable
- Direct Known Subclasses:
InertialMeasurementUnitAdapter
,MockGyro
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected XGyro.ImuType
protected xbot.common.controls.io_inputs.XGyroIoInputsAutoLogged
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIn degreesprotected XGyro.ImuType
double
getPitch()
double
getRoll()
double
abstract boolean
isBroken()
boolean
void
Consumes and processes inputs from the device or subsystem.protected abstract void
updateInputs
(XGyroIoInputs inputs)
-
Field Details
-
imuType
-
io
protected xbot.common.controls.io_inputs.XGyroIoInputsAutoLogged io
-
-
Constructor Details
-
XGyro
-
-
Method Details
-
isBroken
public abstract boolean isBroken() -
getImuType
-
getHeading
In degrees -
getRoll
public double getRoll() -
getPitch
public double getPitch() -
getYawAngularVelocity
public double getYawAngularVelocity() -
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
-