add SPEED_LOOP_MINI and update resonance_tester
This commit is contained in:
parent
88ff8c86e4
commit
95749bfbdb
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue