Skip to content

Commit

Permalink
fix res_tester missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x committed Dec 16, 2024
1 parent f8f3f16 commit 6376c84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shaketune/commands/axes_shaper_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def axes_shaper_calibration(gcmd, config, st_process: ShakeTuneProcess) -> None:
# Then do the actual measurements
ConsoleOutput.print(f'Measuring {config["label"]}...')
accelerometer.start_recording(measurements_manager, name=config['label'], append_time=True)
vibrate_axis(toolhead, gcode, config['direction'], min_freq, max_freq, hz_per_sec, accel_per_hz)
vibrate_axis(toolhead, gcode, config['direction'], min_freq, max_freq, hz_per_sec, accel_per_hz, res_tester)
accelerometer.stop_recording()
accelerometer.wait_for_samples()
toolhead.dwell(0.5)
Expand Down
2 changes: 1 addition & 1 deletion shaketune/commands/compare_belts_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def compare_belts_responses(gcmd, config, st_process: ShakeTuneProcess) -> None:
for config in filtered_config:
ConsoleOutput.print(f'Measuring {config["label"]}...')
accelerometer.start_recording(measurements_manager, name=config['label'], append_time=True)
vibrate_axis(toolhead, gcode, config['direction'], min_freq, max_freq, hz_per_sec, accel_per_hz)
vibrate_axis(toolhead, gcode, config['direction'], min_freq, max_freq, hz_per_sec, accel_per_hz, res_tester)
accelerometer.stop_recording()
accelerometer.wait_for_samples()
toolhead.dwell(0.5)
Expand Down
2 changes: 1 addition & 1 deletion shaketune/helpers/resonance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _project_distance(distance, normalized_direction):
)


def vibrate_axis(toolhead, gcode, axis_direction, min_freq, max_freq, hz_per_sec, accel_per_hz, res_tester=None):
def vibrate_axis(toolhead, gcode, axis_direction, min_freq, max_freq, hz_per_sec, accel_per_hz, res_tester):
manager = ResonanceTestManager(toolhead, gcode, res_tester)
manager.vibrate_axis(axis_direction, min_freq, max_freq, hz_per_sec, accel_per_hz)

Expand Down

0 comments on commit 6376c84

Please sign in to comment.