From 82ae095a962d2d75175c8597422fd614c3194627 Mon Sep 17 00:00:00 2001 From: NoSloppy <53964195+NoSloppy@users.noreply.github.com> Date: Wed, 31 Jul 2024 05:12:36 -0400 Subject: [PATCH] accel in both directions (#684) --- modes/stepped_mode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modes/stepped_mode.h b/modes/stepped_mode.h index 99f019621..a47481d31 100644 --- a/modes/stepped_mode.h +++ b/modes/stepped_mode.h @@ -52,7 +52,7 @@ struct SteppedMode : public SPEC::SelectCancelMode { Angle diff = current_angle - angle_; if (fabs(diff) > twistsize()) { // Acceleration - float twist_speed = fusor.gyro().x; // degrees / s + float twist_speed = fabs(fusor.gyro().x); // degrees / s twist_speed /= 360.0; float step_size = stepsize(); if (twist_speed > 1.0f) {