Class MockGyro
java.lang.Object
xbot.common.controls.sensors.XGyro
xbot.common.controls.sensors.mock_adapters.MockGyro
- All Implemented Interfaces:
DataFrameRefreshable
,ISimulatableSensor
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XGyro
XGyro.ImuType, XGyro.InterfaceType, XGyro.XGyroFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
double
double
double
double
double
void
ingestSimulationData
(org.json.JSONObject payload) boolean
isBroken()
boolean
void
setDeviceRawAccelX
(double accel) void
setDeviceRawAccelY
(double accel) void
setDeviceRawAccelZ
(double accel) void
setDeviceVelocityX
(double velocity) void
setDeviceVelocityY
(double velocity) void
setDeviceVelocityZ
(double velocity) void
setIsBroken
(boolean broken) void
setPitch
(double pitch) void
setRoll
(double roll) void
setYaw
(double yaw) void
setYawAngularVelocity
(double yawAngularVelocity) protected void
updateInputs
(XGyroIoInputs inputs) Methods inherited from class xbot.common.controls.sensors.XGyro
getHeading, getImuType, getPitch, getRoll, getYawAngularVelocity, refreshDataFrame
-
Constructor Details
-
MockGyro
-
-
Method Details
-
isConnected
public boolean isConnected()- Overrides:
isConnected
in classXGyro
-
setYaw
public void setYaw(double yaw) -
getDeviceYaw
public double getDeviceYaw() -
setIsBroken
public void setIsBroken(boolean broken) -
updateInputs
- Specified by:
updateInputs
in classXGyro
-
isBroken
public boolean isBroken() -
setRoll
public void setRoll(double roll) -
getDeviceRoll
public double getDeviceRoll() -
setPitch
public void setPitch(double pitch) -
getDevicePitch
public double getDevicePitch() -
setYawAngularVelocity
public void setYawAngularVelocity(double yawAngularVelocity) -
getDeviceYawAngularVelocity
public double getDeviceYawAngularVelocity() -
getDeviceVelocityX
public double getDeviceVelocityX() -
setDeviceVelocityX
public void setDeviceVelocityX(double velocity) -
getDeviceVelocityY
public double getDeviceVelocityY() -
setDeviceVelocityY
public void setDeviceVelocityY(double velocity) -
getDeviceVelocityZ
public double getDeviceVelocityZ() -
setDeviceVelocityZ
public void setDeviceVelocityZ(double velocity) -
getDeviceRawAccelX
public double getDeviceRawAccelX() -
setDeviceRawAccelX
public void setDeviceRawAccelX(double accel) -
getDeviceRawAccelY
public double getDeviceRawAccelY() -
setDeviceRawAccelY
public void setDeviceRawAccelY(double accel) -
getDeviceRawAccelZ
public double getDeviceRawAccelZ() -
setDeviceRawAccelZ
public void setDeviceRawAccelZ(double accel) -
ingestSimulationData
public void ingestSimulationData(org.json.JSONObject payload) - Specified by:
ingestSimulationData
in interfaceISimulatableSensor
-