aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-12-01 15:29:26 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-12-01 18:17:54 -0500
commitc49d3fdb17d6ba8f90099826355200d5219ab6b6 (patch)
treead12f524dab0e3d100adcb8c12c603a686c7b7d9 /config
parentfcaf359e897cea792ac28fc9140316c76eb87c40 (diff)
downloadkutter-c49d3fdb17d6ba8f90099826355200d5219ab6b6.tar.gz
kutter-c49d3fdb17d6ba8f90099826355200d5219ab6b6.tar.xz
kutter-c49d3fdb17d6ba8f90099826355200d5219ab6b6.zip
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>
Diffstat (limited to 'config')
-rw-r--r--config/example-delta.cfg8
-rw-r--r--config/example.cfg27
-rw-r--r--config/makergear-m2-2012.cfg10
3 files changed, 25 insertions, 20 deletions
diff --git a/config/example-delta.cfg b/config/example-delta.cfg
index 777f7dc2..5954be68 100644
--- a/config/example-delta.cfg
+++ b/config/example-delta.cfg
@@ -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
diff --git a/config/example.cfg b/config/example.cfg
index 1bc1dd59..c1807581 100644
--- a/config/example.cfg
+++ b/config/example.cfg
@@ -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.
diff --git a/config/makergear-m2-2012.cfg b/config/makergear-m2-2012.cfg
index 5634c580..c89f6714 100644
--- a/config/makergear-m2-2012.cfg
+++ b/config/makergear-m2-2012.cfg
@@ -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