summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-07-17 14:02:35 +0200
committerkliment <kliment.yanev@gmail.com>2011-07-17 14:02:35 +0200
commitb136a652c4a244038d0db40894e3558805d7c73a (patch)
treea15a5c70d1221b74611dc9278ff0b2850c95d4f0 /Sprinter
parent3c44f0b3e3263e8c335b2f0c67743c60a4f4a9da (diff)
Add extra config for homing feedrate - fixes #28
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/Configuration.h1
-rw-r--r--Sprinter/Sprinter.pde6
2 files changed, 4 insertions, 3 deletions
diff --git a/Sprinter/Configuration.h b/Sprinter/Configuration.h
index a9cb67f..5f1e1d4 100644
--- a/Sprinter/Configuration.h
+++ b/Sprinter/Configuration.h
@@ -84,6 +84,7 @@ bool axis_relative_modes[] = {false, false, false, false};
// If you enable this, make sure STEP_DELAY_MICROS is disabled. (except for Gen6: both need to be enabled.)
//#define STEP_DELAY_RATIO 0.25
+float homing_feedrate[] = {1500,1500,120};
// Comment this to disable ramp acceleration
#define RAMP_ACCELERATION 1
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 4be4788..429dcb7 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -481,7 +481,7 @@ inline void process_commands()
if ((X_MIN_PIN > -1 && X_HOME_DIR==-1) || (X_MAX_PIN > -1 && X_HOME_DIR==1)){
current_position[0] = 0;
destination[0] = 1.5 * X_MAX_LENGTH * X_HOME_DIR;
- feedrate = max_start_speed_units_per_second[0] * 60;
+ feedrate = homing_feedrate[0];
prepare_move();
current_position[0] = 0;
@@ -501,7 +501,7 @@ inline void process_commands()
if ((Y_MIN_PIN > -1 && Y_HOME_DIR==-1) || (Y_MAX_PIN > -1 && Y_HOME_DIR==1)){
current_position[1] = 0;
destination[1] = 1.5 * Y_MAX_LENGTH * Y_HOME_DIR;
- feedrate = max_start_speed_units_per_second[1] * 60;
+ feedrate = homing_feedrate[1];
prepare_move();
current_position[1] = 0;
@@ -521,7 +521,7 @@ inline void process_commands()
if ((Z_MIN_PIN > -1 && Z_HOME_DIR==-1) || (Z_MAX_PIN > -1 && Z_HOME_DIR==1)){
current_position[2] = 0;
destination[2] = 1.5 * Z_MAX_LENGTH * Z_HOME_DIR;
- feedrate = max_feedrate[2]/2;
+ feedrate = homing_feedrate[2];
prepare_move();
current_position[2] = 0;