summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/generic/generictiltsensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/sensors/generic/generictiltsensor.cpp')
-rw-r--r--src/plugins/sensors/generic/generictiltsensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sensors/generic/generictiltsensor.cpp b/src/plugins/sensors/generic/generictiltsensor.cpp
index 95c8525b..ea85032e 100644
--- a/src/plugins/sensors/generic/generictiltsensor.cpp
+++ b/src/plugins/sensors/generic/generictiltsensor.cpp
@@ -139,7 +139,7 @@ bool GenericTiltSensor::filter(QAccelerometerReading *reading)
#endif
qreal xrot = roll - calibratedRoll;
qreal yrot = pitch - calibratedPitch;
- //get angle beteen 0 and 180 or 0 -180
+ //get angle between 0 and 180 or 0 -180
qreal aG = 1 * sin(xrot);
qreal aK = 1 * cos(xrot);
xrot = qAtan2(aG, aK);