Skip to content

Commit

Permalink
Merge pull request #196 from Zeanon/recenter_toolhead
Browse files Browse the repository at this point in the history
recenter toolhead before each measurement
  • Loading branch information
Frix-x authored Feb 9, 2025
2 parents 7bcaa8f + eaa0b63 commit 0818224
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shaketune/commands/axes_shaper_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def axes_shaper_calibration(gcmd, config, st_process: ShakeTuneProcess) -> None:
a for a in AXIS_CONFIG if a['axis'] == axis_input or (axis_input == 'all' and a['axis'] in ('x', 'y'))
]
for config in filtered_config:
toolhead.manual_move(point, feedrate_travel)
toolhead.dwell(0.5)
toolhead.wait_moves()

measurements_manager = MeasurementsManager(st_process.get_st_config().chunk_size)

# First we need to find the accelerometer chip suited for the axis
Expand Down
4 changes: 4 additions & 0 deletions shaketune/commands/compare_belts_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def compare_belts_responses(gcmd, config, st_process: ShakeTuneProcess) -> None:

# Run the test for each axis
for config in filtered_config:
toolhead.manual_move(point, feedrate_travel)
toolhead.dwell(0.5)
toolhead.wait_moves()

ConsoleOutput.print(f'Measuring {config["label"]}...')
accelerometer.start_recording(measurements_manager, name=config['label'], append_time=True)
test_params = vibrate_axis(
Expand Down

0 comments on commit 0818224

Please sign in to comment.