diff options
author | Emanuele Caruso <emanuele.caruso@gmail.com> | 2011-05-20 10:25:34 +0200 |
---|---|---|
committer | Emanuele Caruso <emanuele.caruso@gmail.com> | 2011-05-20 20:38:50 +0200 |
commit | 181df1fe733aca5264c0f63425779c767b37e54e (patch) | |
tree | ae226fbf5a86cd160e61d6c672d70107b9272224 /Tonokip_Firmware/configuration.h | |
parent | 0cf824857bc05deb36ed0b9b3c52c4b2c9ef673c (diff) |
All axes are now controlled in Bresenham. Now, also E has its own max acceleration and start speed. Also added some function useful for debugging.
Diffstat (limited to 'Tonokip_Firmware/configuration.h')
-rw-r--r-- | Tonokip_Firmware/configuration.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Tonokip_Firmware/configuration.h b/Tonokip_Firmware/configuration.h index f8de2a7..cea0740 100644 --- a/Tonokip_Firmware/configuration.h +++ b/Tonokip_Firmware/configuration.h @@ -26,9 +26,9 @@ //Acceleration settings #ifdef RAMP_ACCELERATION -//X, Y, Z, E maximum start speed for accelerated moves. E default value is good for skeinforge 40+, for older versions raise it a lot. +//X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot. float max_start_speed_units_per_second[] = {35.0,35.0,0.2,10.0}; -long max_acceleration_units_per_sq_second[] = {750,750,50,4000}; // X, Y, Z (E currently not used) max acceleration in mm/s^2 for printing moves +long max_acceleration_units_per_sq_second[] = {750,750,50,4000}; // X, Y, Z and E max acceleration in mm/s^2 for printing moves or retracts long max_travel_acceleration_units_per_sq_second[] = {1500,1500,50}; // X, Y, Z max acceleration in mm/s^2 for travel moves #endif #ifdef EXP_ACCELERATION @@ -151,6 +151,13 @@ const int Z_MAX_LENGTH = 100; #define BAUDRATE 115200 -//#define PRINT_MOVE_TIME +//Uncomment the following line to enable debugging. You can better control debugging below the following line +//#define DEBUG +#ifdef DEBUG + #define DEBUG_PREPARE_MOVE //Enable this to debug prepare_move() function + #define DEBUG_BRESENHAM //Enable this to debug the Bresenham algorithm + #define DEBUG_RAMP_ACCELERATION //Enable this to debug all constant acceleration info + #define DEBUG_MOVE_TIME //Enable this to time each move and print the result +#endif #endif |