toolhead: Specify maximum acceleration and velocity in toolhead class

Change the config file so the maximum accel and velocity are specified
in the "printer" section instead of the individual "stepper" sections.
The underlying code limits the velocity and accel of the toolhead
relative to the print object, so it makes sense to configure the
system that was as well.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-12-01 15:29:26 -05:00
parent fcaf359e89
commit c49d3fdb17
8 changed files with 52 additions and 53 deletions

View File

@@ -16,8 +16,6 @@ step_pin: ar54
dir_pin: ar55
enable_pin: !ar38
step_distance: .01
max_velocity: 200
max_accel: 3000
endstop_pin: ^ar2
homing_speed: 50.0
position_endstop: 297.05
@@ -30,8 +28,6 @@ step_pin: ar60
dir_pin: ar61
enable_pin: !ar56
step_distance: .01
max_velocity: 200
max_accel: 3000
endstop_pin: ^ar15
position_endstop: 297.05
@@ -42,8 +38,6 @@ step_pin: ar46
dir_pin: ar48
enable_pin: !ar62
step_distance: .01
max_velocity: 200
max_accel: 3000
endstop_pin: ^ar19
position_endstop: 297.05
@@ -85,6 +79,8 @@ pin_map: arduino
[printer]
kinematics: delta
# This option must be "delta" for linear delta printers
max_velocity: 200
max_accel: 3000
delta_arm_length: 333.0
# Length (in mm) of the diagonal rods that connect the linear axes
# to the print head

View File

@@ -26,10 +26,6 @@ enable_pin: !ar25
# Enable pin (default is enable high; use ! to indicate enable low)
step_distance: .0225
# Distance in mm that each step causes the axis to travel
max_velocity: 500
# Maximum velocity (in mm/s) of the stepper
max_accel: 3000
# Maximum acceleration (in mm/s^2) of the stepper
endstop_pin: ^ar0
# Endstop switch detection pin
homing_speed: 50.0
@@ -75,8 +71,6 @@ step_pin: ar27
dir_pin: ar26
enable_pin: !ar25
step_distance: .0225
max_velocity: 500
max_accel: 3000
endstop_pin: ^ar1
position_min: -0.25
position_endstop: 0
@@ -90,8 +84,6 @@ step_pin: ar23
dir_pin: !ar22
enable_pin: !ar25
step_distance: .005
max_velocity: 250
max_accel: 30
endstop_pin: ^ar2
position_min: 0.1
position_endstop: 0.5
@@ -108,7 +100,12 @@ dir_pin: ar18
enable_pin: !ar25
step_distance: .004242
max_velocity: 200000
# Maximum velocity (in mm/s) of the extruder motor for extrude only
# moves.
max_accel: 3000
# Maximum acceleration (in mm/s^2) of the extruder motor for extrude
# only moves.
#
# The remaining variables describe the extruder heater
pressure_advance: 0.0
# The amount of raw filament to push into the extruder during
@@ -191,6 +188,20 @@ custom:
[printer]
kinematics: cartesian
# This option must be "cartesian" for cartesian printers
max_velocity: 500
# Maximum velocity (in mm/s) of the toolhead (relative to the
# print)
max_accel: 3000
# Maximum acceleration (in mm/s^2) of the toolhead (relative to the
# print)
max_z_velocity: 250
# For cartesian printers this sets the maximum velocity (in mm/s) of
# movement along the z axis. This setting can be used to restrict
# the maximum speed of the z stepper motor on cartesian printers.
max_z_accel: 30
# For cartesian printers this sets the maximum acceleration (in
# mm/s^2) of movement along the z axis. It limits the acceleration
# of the z stepper motor on cartesian printers.
motor_off_time: 60
# Time (in seconds) of idle time before the printer will try to
# disable active motors.

View File

@@ -8,8 +8,6 @@ step_pin: PC0
dir_pin: !PL1
enable_pin: !PA7
step_distance: .0225
max_velocity: 500
max_accel: 3000
endstop_pin: ^!PB6
homing_speed: 50.0
homing_stepper_phases: 32
@@ -23,8 +21,6 @@ step_pin: PC1
dir_pin: PL0
enable_pin: !PA6
step_distance: .0225
max_velocity: 500
max_accel: 3000
endstop_pin: ^!PB5
homing_speed: 50.0
homing_stepper_phases: 32
@@ -38,8 +34,6 @@ step_pin: PC2
dir_pin: !PL2
enable_pin: !PA5
step_distance: .005
max_velocity: 250
max_accel: 30
endstop_pin: ^!PB4
homing_speed: 4.0
homing_retract_dist: 2.0
@@ -105,4 +99,8 @@ custom:
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 250
max_z_accel: 30
motor_off_time: 600