public class GyroscopeSimulator extends Sensor implements GyroscopeSensor
simulatedOnly, validLoad
Constructor and Description |
---|
GyroscopeSimulator() |
Modifier and Type | Method and Description |
---|---|
double[] |
getGyroscopeData() |
float |
getGyroscopeX() |
float |
getGyroscopeY() |
float |
getGyroscopeZ() |
float |
getPitch() |
float |
getRoll() |
java.lang.String |
getSensorName()
Returns the sensor name, typically the make/model of the hardware sensor that this class refers to.
|
float |
getYaw() |
void |
reloadSimulation()
Override this on any classes you need to do something as a simulated sensor
|
addListener, addNonResettableListener, addNonResettableValueChangedListener, addValueChangedListener, clearListeners, getSensor, isSimulatedOnly, isValidLoadedSensor, notifyListeners, removeListener, removeListener, resetToDefault, roundValue, scaleValue, setSimulatedOnly, setValidLoad, storeSensor
public void reloadSimulation()
Sensor
reloadSimulation
in class Sensor
public java.lang.String getSensorName()
Sensor
getSensorName
in class Sensor
String
representing the sensor's name.public double[] getGyroscopeData()
getGyroscopeData
in interface GyroscopeSensor
public float getGyroscopeX()
getGyroscopeX
in interface GyroscopeSensor
public float getGyroscopeY()
getGyroscopeY
in interface GyroscopeSensor
public float getGyroscopeZ()
getGyroscopeZ
in interface GyroscopeSensor
public float getPitch()
getPitch
in interface GyroscopeSensor
public float getRoll()
getRoll
in interface GyroscopeSensor
public float getYaw()
getYaw
in interface GyroscopeSensor