Skip to content

Commit

Permalink
Fix Torque Tilt using ATR step sizes instead of its own
Browse files Browse the repository at this point in the history
Fix: Fix Torque Tilt using ATR step sizes instead of its own step sizes.
  • Loading branch information
aeraglyx authored and lukash committed Mar 29, 2024
1 parent e4500bb commit de2a2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refloat/refloat/torque_tilt.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ void torque_tilt_reset(TorqueTilt *tt) {
}

void torque_tilt_configure(TorqueTilt *tt, const RefloatConfig *config) {
tt->on_step_size = config->atr_on_speed / config->hertz;
tt->off_step_size = config->atr_off_speed / config->hertz;
tt->on_step_size = config->torquetilt_on_speed / config->hertz;
tt->off_step_size = config->torquetilt_off_speed / config->hertz;
}

void torque_tilt_update(TorqueTilt *tt, const MotorData *motor, const RefloatConfig *config) {
Expand Down

0 comments on commit de2a2ec

Please sign in to comment.