Class InertialMeasurementUnitAdapter
java.lang.Object
xbot.common.controls.sensors.XGyro
xbot.common.controls.sensors.wpi_adapters.InertialMeasurementUnitAdapter
- All Implemented Interfaces:
AutoCloseable
,DataFrameRefreshable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XGyro
XGyro.ImuType, XGyro.InterfaceType, XGyro.XGyroFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XGyro
deviceName, imuType, io
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
double
double
double
double
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
getAcceleration, getAccelerationX, getAccelerationY, getAccelerationZ, getHeading, getImuType, getPitch, getRoll, getYawAngularVelocity, refreshDataFrame
-
Constructor Details
-
InertialMeasurementUnitAdapter
@AssistedInject public InertialMeasurementUnitAdapter(DevicePolice police, @Assisted IMUInfo imuInfo)
-
-
Method Details
-
isConnected
public boolean isConnected()- Overrides:
isConnected
in classXGyro
-
updateInputs
- Specified by:
updateInputs
in classXGyro
-
isBroken
public boolean isBroken() -
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() -
close
public void close()
-