Class InertialMeasurementUnitAdapter
java.lang.Object
xbot.common.controls.sensors.XGyro
xbot.common.controls.sensors.wpi_adapters.InertialMeasurementUnitAdapter
- All Implemented Interfaces:
DataFrameRefreshable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XGyro
XGyro.ImuType, XGyro.InterfaceType, XGyro.XGyroFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInertialMeasurementUnitAdapter
(DevicePolice police, XGyro.InterfaceType interfaceType) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
double
double
double
protected double
double
Note: this is in degrees per second.boolean
isBroken()
boolean
protected void
updateInputs
(XGyroIoInputs inputs) Methods inherited from class xbot.common.controls.sensors.XGyro
getHeading, getImuType, getPitch, getRoll, getYawAngularVelocity, refreshDataFrame
-
Constructor Details
-
InertialMeasurementUnitAdapter
@AssistedInject public InertialMeasurementUnitAdapter(DevicePolice police, @Assisted XGyro.InterfaceType interfaceType)
-
-
Method Details
-
isConnected
public boolean isConnected()- Overrides:
isConnected
in classXGyro
-
getDeviceYaw
protected double getDeviceYaw() -
getDeviceRoll
public double getDeviceRoll() -
getDevicePitch
public double getDevicePitch() -
updateInputs
- Specified by:
updateInputs
in classXGyro
-
isBroken
public boolean isBroken() -
getDeviceYawAngularVelocity
public double getDeviceYawAngularVelocity()Note: this is in degrees per second. -
getDeviceVelocityX
public double getDeviceVelocityX() -
getDeviceVelocityY
public double getDeviceVelocityY() -
getDeviceVelocityZ
public double getDeviceVelocityZ() -
getDeviceRawAccelX
public double getDeviceRawAccelX() -
getDeviceRawAccelY
public double getDeviceRawAccelY() -
getDeviceRawAccelZ
public double getDeviceRawAccelZ()
-