diff --git a/macros/test_speed.cfg b/macros/test_speed.cfg index d39f6e9..19e9c9c 100644 --- a/macros/test_speed.cfg +++ b/macros/test_speed.cfg @@ -178,6 +178,37 @@ gcode: #-------------------------------------------------------------------- +[gcode_macro SPEED_LOOP_MINI] +gcode: + MAYBE_HOME + {% set vel = (300,400) %} # set velocity values to be tested (mm/s) + {% set accel = (5000,5000) %} # set accel values to be tested (mm/s^2) + {% set min = 40 %} # set the square lower left point + {% set max = 260 %} # set the square upper right corner + G1 X{min} Y{min} F5000 + {% for V in vel %} + {% set machineVel = V*60 %} + {% for A in accel %} + M118 velocity:{V}mm/s, accel:{A}mm/s^2 + SET_VELOCITY_LIMIT VELOCITY={V} + SET_VELOCITY_LIMIT ACCEL={A} + SET_VELOCITY_LIMIT ACCEL_TO_DECEL={A} + G1 X{max} Y{min} F{machineVel} + G1 X{max} Y{max} + G1 X{min} Y{min} + G1 X{min} Y{max} + G1 X{max} Y{min} + G1 X{max} Y{min} + G1 X{max} Y{max} + G1 X{min} Y{max} + G1 X{min} Y{min} + G4 P1000 + {% endfor %} + {% endfor %} + RESETSPEEDS + +#-------------------------------------------------------------------- + [gcode_macro RESETSPEEDS] gcode: SET_VELOCITY_LIMIT VELOCITY={printer.configfile.settings.printer.max_velocity} diff --git a/printer.cfg b/printer.cfg index 42189db..bc2fe8d 100644 --- a/printer.cfg +++ b/printer.cfg @@ -322,8 +322,8 @@ spi_software_miso_pin: toolboard: PB2 [resonance_tester] accel_chip: adxl345 probe_points: 150,150,20 -# min_freq: 40 -# max_freq: 90 +min_freq: 20 +max_freq: 100 # accel_per_hz: 75 # hz_per_sec: 1