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, storeSensorpublic void reloadSimulation()
SensorreloadSimulation in class Sensorpublic java.lang.String getSensorName()
SensorgetSensorName in class SensorString representing the sensor's name.public double[] getGyroscopeData()
getGyroscopeData in interface GyroscopeSensorpublic float getGyroscopeX()
getGyroscopeX in interface GyroscopeSensorpublic float getGyroscopeY()
getGyroscopeY in interface GyroscopeSensorpublic float getGyroscopeZ()
getGyroscopeZ in interface GyroscopeSensorpublic float getPitch()
getPitch in interface GyroscopeSensorpublic float getRoll()
getRoll in interface GyroscopeSensorpublic float getYaw()
getYaw in interface GyroscopeSensor