Skip to content

Commit e1fa61f

Browse files
committed
Properly purge AXES_MAP_CALIBRATION
1 parent af9d620 commit e1fa61f

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

install.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,15 @@ function link_extension {
109109
}
110110

111111
function link_module {
112-
if [ ! -d "${KLIPPER_PATH}/klippy/extras/shaketune" ]; then
113-
echo "[INSTALL] Linking Shake&Tune module to Klipper extras"
114-
ln -frsn ${K_SHAKETUNE_PATH}/shaketune ${KLIPPER_PATH}/klippy/extras/shaketune
115-
else
116-
printf "[INSTALL] Klippain Shake&Tune Klipper module is already installed. Continuing...\n\n"
117-
fi
112+
mv ${KLIPPER_PATH}/klippy/extras/shaketune ${K_SHAKETUNE_PATH}/backups/shaketune_link.$date
113+
echo "[INSTALL] Linking Shake&Tune module to Klipper extras"
114+
ln -frsn ${K_SHAKETUNE_PATH}/shaketune ${KLIPPER_PATH}/klippy/extras/shaketune
118115
}
119116

120117
function update_klipper {
121118
DATE=$(date +"%Y%m%d%H%M%S")
122-
cp /home/mks/klipper/klippy/extras/resonance_tester.py backups/resonance_tester.py.$date
123-
cp /home/mks/klipper/klippy/extras/shaper_calibrate.py backups/shaper_calibrate.py.$date
119+
cp /home/mks/klipper/klippy/extras/resonance_tester.py ${K_SHAKETUNE_PATH}/backups/resonance_tester.py.$date
120+
cp /home/mks/klipper/klippy/extras/shaper_calibrate.py ${K_SHAKETUNE_PATH}/backups/shaper_calibrate.py.$date
124121
cp resonance_tester.py shaper_calibrate.py /home/mks/klipper/klippy/extras
125122
}
126123

shaketune/commands/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Description: Imports various commands function (to run and record the tests) for the Shake&Tune package.
88

99

10-
from .axes_map_calibration import axes_map_calibration as axes_map_calibration
1110
from .axes_shaper_calibration import axes_shaper_calibration as axes_shaper_calibration
1211
from .compare_belts_responses import compare_belts_responses as compare_belts_responses
1312
from .create_vibrations_profile import create_vibrations_profile as create_vibrations_profile

shaketune/dummy_macros.cfg

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ gcode:
3232
_EXCITATE_AXIS_AT_FREQ {% for key, value in params_filtered.items() if value is defined and value is not none and value != '' %}{key}={value} {% endfor %}
3333

3434

35-
[gcode_macro AXES_MAP_CALIBRATION]
36-
description: dummy
37-
gcode:
38-
{% set dummy = params.Z_HEIGHT|default(20) %}
39-
{% set dummy = params.SPEED|default(80) %}
40-
{% set dummy = params.ACCEL|default(1500) %}
41-
{% set dummy = params.TRAVEL_SPEED|default(120) %}
42-
_AXES_MAP_CALIBRATION {rawparams}
43-
44-
4535
[gcode_macro COMPARE_BELTS_RESPONSES]
4636
description: dummy
4737
gcode:

shaketune/shaketune.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from typing_extensions import Callable
1515

1616
from .commands import (
17-
axes_map_calibration,
1817
axes_shaper_calibration,
1918
compare_belts_responses,
2019
create_vibrations_profile,
@@ -37,10 +36,6 @@
3736
'EXCITATE_AXIS_AT_FREQ': (
3837
'Maintain a specified excitation frequency for a period of time to diagnose and locate a source of vibrations'
3938
),
40-
'AXES_MAP_CALIBRATION': (
41-
'Perform a set of movements to measure the orientation of the accelerometer '
42-
'and help you set the best axes_map configuration for your printer'
43-
),
4439
'COMPARE_BELTS_RESPONSES': (
4540
'Perform a custom half-axis test to analyze and compare the '
4641
'frequency profiles of individual belts on CoreXY or CoreXZ printers'
@@ -92,7 +87,6 @@ def _register_commands(self) -> None:
9287
gcode = self._printer.lookup_object('gcode')
9388
measurement_commands = [
9489
('EXCITATE_AXIS_AT_FREQ', self.cmd_EXCITATE_AXIS_AT_FREQ, ST_COMMANDS['EXCITATE_AXIS_AT_FREQ']),
95-
('AXES_MAP_CALIBRATION', self.cmd_AXES_MAP_CALIBRATION, ST_COMMANDS['AXES_MAP_CALIBRATION']),
9690
('COMPARE_BELTS_RESPONSES', self.cmd_COMPARE_BELTS_RESPONSES, ST_COMMANDS['COMPARE_BELTS_RESPONSES']),
9791
('AXES_SHAPER_CALIBRATION', self.cmd_AXES_SHAPER_CALIBRATION, ST_COMMANDS['AXES_SHAPER_CALIBRATION']),
9892
('CREATE_VIBRATIONS_PROFILE', self.cmd_CREATE_VIBRATIONS_PROFILE, ST_COMMANDS['CREATE_VIBRATIONS_PROFILE']),
@@ -169,9 +163,6 @@ def _cmd_helper(self, gcmd, graph_type: str, cmd_function: Callable) -> None:
169163
def cmd_EXCITATE_AXIS_AT_FREQ(self, gcmd) -> None:
170164
self._cmd_helper(gcmd, 'static frequency', excitate_axis_at_freq)
171165

172-
def cmd_AXES_MAP_CALIBRATION(self, gcmd) -> None:
173-
self._cmd_helper(gcmd, 'axes map', axes_map_calibration)
174-
175166
def cmd_COMPARE_BELTS_RESPONSES(self, gcmd) -> None:
176167
self._cmd_helper(gcmd, 'belts comparison', compare_belts_responses)
177168

0 commit comments

Comments
 (0)