diff options
author | kliment <kliment.yanev@gmail.com> | 2011-07-17 14:09:14 +0200 |
---|---|---|
committer | kliment <kliment.yanev@gmail.com> | 2011-07-17 14:09:14 +0200 |
commit | 0c376e76d1c19eb1f595123c8fb43ca6a6ae8f13 (patch) | |
tree | 31bc11df27b0b497d1112b2a271767b3f22d5f59 | |
parent | b136a652c4a244038d0db40894e3558805d7c73a (diff) |
Add some explanations to config, change some variables to #defines. Fixes #36
-rw-r--r-- | Sprinter/Configuration.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Sprinter/Configuration.h b/Sprinter/Configuration.h index 5f1e1d4..5d64c7b 100644 --- a/Sprinter/Configuration.h +++ b/Sprinter/Configuration.h @@ -29,6 +29,8 @@ float axis_steps_per_unit[] = {80, 80, 3200/1.25,700}; #define ENDSTOPPULLUPS 1 // Comment this out (using // at the start of the line) to disable the endstop pullup resistors // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins. const bool ENDSTOPS_INVERTING = false; //set to true to invert the logic of the endstops +//If your axes are only moving in one direction, make sure the endstops are connected properly. +//If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here // This determines the communication speed of the printer #define BAUDRATE 115200 @@ -42,10 +44,10 @@ const bool ENDSTOPS_INVERTING = false; //set to true to invert the logic of the #include "thermistortables.h" // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 -const bool X_ENABLE_ON = 0; -const bool Y_ENABLE_ON = 0; -const bool Z_ENABLE_ON = 0; -const bool E_ENABLE_ON = 0; +#define X_ENABLE_ON 0 +#define Y_ENABLE_ON 0 +#define Z_ENABLE_ON 0 +#define E_ENABLE_ON 0 // Disables axis when it's not being used. const bool DISABLE_X = false; @@ -61,9 +63,9 @@ const bool INVERT_E_DIR = false; //// ENDSTOP SETTINGS: // Sets direction of endstops when homing; 1=MAX, -1=MIN -const int X_HOME_DIR = -1; -const int Y_HOME_DIR = -1; -const int Z_HOME_DIR = -1; +#define X_HOME_DIR -1 +#define Y_HOME_DIR -1 +#define Z_HOME_DIR -1 const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero. const bool max_software_endstops = true; //If true, axis won't move to coordinates greater than the defined lengths below. @@ -74,6 +76,7 @@ const int Z_MAX_LENGTH = 100; //// MOVEMENT SETTINGS const int NUM_AXIS = 4; // The axis order in all axis related arrays is X, Y, Z, E float max_feedrate[] = {200000, 200000, 240, 500000}; +float homing_feedrate[] = {1500,1500,120}; bool axis_relative_modes[] = {false, false, false, false}; // Min step delay in microseconds. If you are experiencing missing steps, try to raise the delay microseconds, but be aware this @@ -84,7 +87,6 @@ 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 |