summaryrefslogtreecommitdiff
path: root/src/sensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensor.cpp')
-rw-r--r--src/sensor.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sensor.cpp b/src/sensor.cpp
index 23edc17..9d4157e 100644
--- a/src/sensor.cpp
+++ b/src/sensor.cpp
@@ -66,7 +66,6 @@ void Sensor::reset()
_accel_x = 0;
_accel_y = 0;
- _accel_z = 0;
_pitch = 0;
_roll = 0;
@@ -135,8 +134,6 @@ bool Sensor::read()
_accel_y = atan(-1.0 * _accel_raw_x / sqrt(accel_y_pow_two + accel_z_pow_two)) *
RAD_TO_DEGREES;
- _accel_z =
- atan(_accel_raw_z / sqrt(accel_x_pow_two + accel_y_pow_two)) * RAD_TO_DEGREES;
// Convert raw Gyro to degrees/s
_gyro_raw_x *= _ang_rate_to_dps;