diff --git a/UAV-ControlSystem/src/Flight/pid.c b/UAV-ControlSystem/src/Flight/pid.c index 0939bce..31d130e 100644 --- a/UAV-ControlSystem/src/Flight/pid.c +++ b/UAV-ControlSystem/src/Flight/pid.c @@ -69,7 +69,6 @@ float accPitchFineTune = 0; float calcAngle(const uint8_t axis, const float x_axis, const float y_axis, const float z_axis) { float angle; - float angle_offset = (z_axis < 0 )? 90: 0; switch (axis) {