Skip to content

Commit

Permalink
accel in both directions (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSloppy authored Jul 31, 2024
1 parent 66df399 commit 82ae095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modes/stepped_mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 82ae095

Please sign in to comment.