 |
AntiMicroX
|
Go to the documentation of this file.
38 virtual void getCalibration(
double *offsetX,
double *offsetY,
double *offsetZ)
const override;
39 virtual void setCalibration(
double offsetX,
double offsetY,
double offsetZ)
override;
42 virtual void reset()
override;
float m_pending_value[3]
Definition: joysensor.h:146
virtual void reset() override
Resets internal variables back to default.
Definition: joyaccelerometersensor.cpp:113
virtual float getXCoordinate() const override
Get the value for the corresponding X axis.
Definition: joyaccelerometersensor.cpp:45
virtual void populateButtons() override
Initializes the JoySensorButton objects for this sensor.
Definition: joyaccelerometersensor.cpp:125
static const double SHOCK_SUPPRESS_FACTOR
Definition: joyaccelerometersensor.h:46
virtual QString sensorTypeName() const override
Get the translated sensor type name.
Definition: joyaccelerometersensor.cpp:63
bool m_calibrated
Definition: joysensor.h:147
virtual float getYCoordinate() const override
Get the value for the corresponding Y axis.
Definition: joyaccelerometersensor.cpp:51
A set of mapped events which can by switched by a controller event. Contains controller input objects...
Definition: setjoystick.h:39
double m_dead_zone
Definition: joysensor.h:136
double calculatePitch() const
Calculate the pitch angle (in degrees) corresponding to the current position of controller.
Definition: joysensor.cpp:425
double process(double value)
Processes a new sample.
Definition: pt1filter.cpp:36
@ SENSOR_LEFT
Definition: joysensordirection.h:30
static const double SHOCK_DETECT_THRESHOLD
Definition: joyaccelerometersensor.h:45
double m_calibration_value[3]
Definition: joysensor.h:148
virtual void applyCalibration() override
Applies calibration to queued input values.
Definition: joyaccelerometersensor.cpp:222
virtual void reset()
Resets internal variables back to default.
Definition: joysensor.cpp:578
void reset()
Resets the filter state to default.
Definition: pt1filter.cpp:45
@ SENSOR_CENTERED
Definition: joysensordirection.h:29
double m_rate
Definition: joyaccelerometersensor.h:53
@ SENSOR_LEFT_UP
Definition: joysensordirection.h:37
double m_max_zone
Definition: joysensor.h:138
virtual void getCalibration(double *offsetX, double *offsetY, double *offsetZ) const override
Reads the calibration values of the sensor.
Definition: joyaccelerometersensor.cpp:71
double calculateRoll() const
Calculate the roll angle (in degrees) corresponding to the current position of controller.
Definition: joysensor.cpp:455
JoyAccelerometerSensor(double rate, int originset, SetJoystick *parent_set, QObject *parent)
Definition: joyaccelerometersensor.cpp:30
virtual ~JoyAccelerometerSensor()
Definition: joyaccelerometersensor.cpp:39
@ SENSOR_DOWN
Definition: joysensordirection.h:33
virtual float getZCoordinate() const override
Get the value for the corresponding Z axis.
Definition: joyaccelerometersensor.cpp:57
@ SENSOR_RIGHT_DOWN
Definition: joysensordirection.h:42
PT1Filter m_shock_filter
Definition: joyaccelerometersensor.h:54
virtual void setCalibration(double offsetX, double offsetY, double offsetZ) override
Sets the sensor calibration values and sets the calibration flag.
Definition: joyaccelerometersensor.cpp:88
int m_originset
Definition: joysensor.h:152
static const double FALLBACK_RATE
Definition: pt1filter.h:38
@ SENSOR_RIGHT_UP
Definition: joysensordirection.h:41
static const double SHOCK_TAU
Definition: joyaccelerometersensor.h:47
static const double ACCEL_MAX
Definition: globalvariables.h:230
@ SENSOR_UP
Definition: joysensordirection.h:32
JoySensorDirection
A bitfield style enum which encodes all possible three dimensional sensor directions....
Definition: joysensordirection.h:27
Represents an accelerometer sensor.
Definition: joyaccelerometersensor.h:27
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition: joysensor.h:39
@ SENSOR_RIGHT
Definition: joysensordirection.h:31
Implementation of a first order lag or PT1 filter. Can be used for example to smooth noisy values a b...
Definition: pt1filter.h:25
@ SENSOR_LEFT_DOWN
Definition: joysensordirection.h:38
QHash< JoySensorDirection, JoySensorButton * > m_buttons
Definition: joysensor.h:158
float m_current_value[3]
Definition: joysensor.h:145
size_t m_shock_suppress_count
Definition: joyaccelerometersensor.h:55
double m_diagonal_range
Definition: joysensor.h:137
double m_calibration_matrix[3][3]
Definition: joyaccelerometersensor.h:56
@ SENSOR_BWD
Definition: joysensordirection.h:35
SetJoystick * getParentSet() const
Get pointer to the set that a sensor belongs to.
Definition: joysensor.cpp:774
static double degToRad(double value)
Utility function which converts a given value from degree to radians.
Definition: joysensor.cpp:524
@ ACCELEROMETER
Definition: joysensortype.h:25
virtual JoySensorDirection calculateSensorDirection() override
Find the direction zone of the current sensor position.
Definition: joyaccelerometersensor.cpp:166