Browse Source

Allowing #define DELTA_TOWER_ANGLE_TRIM[C_AXIS]

More consistent with M665 where C-value is allowed as well, then
normalized
pull/1/head
LVD-AC 8 years ago
committed by teemuatlut
parent
commit
dcf30a69d6
  1. 2
      Marlin/Conditionals_post.h
  2. 4
      Marlin/Marlin_main.cpp
  3. 5
      Marlin/configuration_store.cpp
  4. 2
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  5. 2
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  6. 2
      Marlin/example_configurations/delta/generic/Configuration.h
  7. 2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  8. 2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  9. 2
      Marlin/example_configurations/delta/kossel_xl/Configuration.h

2
Marlin/Conditionals_post.h

@ -698,7 +698,7 @@
#define DELTA_ENDSTOP_ADJ { 0.0, 0.0, 0.0 }
#endif
#ifndef DELTA_TOWER_ANGLE_TRIM
#define DELTA_TOWER_ANGLE_TRIM {0.0, 0.0}
#define DELTA_TOWER_ANGLE_TRIM {0.0, 0.0, 0.0}
#endif
#ifndef DELTA_RADIUS_TRIM_TOWER
#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

4
Marlin/Marlin_main.cpp

@ -7524,8 +7524,8 @@ inline void gcode_M205() {
if (code_seen('X')) delta_tower_angle_trim[A_AXIS] = code_value_linear_units();
if (code_seen('Y')) delta_tower_angle_trim[B_AXIS] = code_value_linear_units();
if (code_seen('Z')) { // rotate all 3 axis for Z = 0
delta_tower_angle_trim[A_AXIS] += code_value_linear_units();
delta_tower_angle_trim[B_AXIS] = code_value_linear_units();
delta_tower_angle_trim[A_AXIS] -= code_value_linear_units();
delta_tower_angle_trim[B_AXIS] -= code_value_linear_units();
}
recalc_delta_settings(delta_radius, delta_diagonal_rod);
}

5
Marlin/configuration_store.cpp

@ -1066,13 +1066,14 @@ void MarlinSettings::reset() {
#if ENABLED(DELTA)
const float adj[ABC] = DELTA_ENDSTOP_ADJ,
dta[2] = DELTA_TOWER_ANGLE_TRIM;
dta[3] = DELTA_TOWER_ANGLE_TRIM;
COPY(endstop_adj, adj);
delta_radius = DELTA_RADIUS;
delta_diagonal_rod = DELTA_DIAGONAL_ROD;
delta_segments_per_second = DELTA_SEGMENTS_PER_SECOND;
delta_calibration_radius = DELTA_CALIBRATION_RADIUS;
COPY(delta_tower_angle_trim, dta);
delta_tower_angle_trim[A_AXIS] = dta[A_AXIS] - dta[C_AXIS];
delta_tower_angle_trim[B_AXIS] = dta[B_AXIS] - dta[C_AXIS];
home_offset[Z_AXIS] = 0;
#elif ENABLED(Z_DUAL_ENDSTOPS)

2
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h

@ -488,7 +488,7 @@
// Trim adjustments for individual towers
// tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0
// measured in degrees anticlockwise looking from above the printer
#define DELTA_TOWER_ANGLE_TRIM { -0.00, -0.00 } // get these from auto calibrate
#define DELTA_TOWER_ANGLE_TRIM { 0.00, 0.00, 0.00 } // get these from auto calibrate
// delta radius and diaginal rod adjustments measured in mm
//#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

2
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h

@ -489,7 +489,7 @@
// Trim adjustments for individual towers
// tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0
// measured in degrees anticlockwise looking from above the printer
#define DELTA_TOWER_ANGLE_TRIM { -0.00, -0.00 } // get these from auto calibrate
#define DELTA_TOWER_ANGLE_TRIM { 0.00, 0.00, 0.00 } // get these from auto calibrate
// delta radius and diaginal rod adjustments measured in mm
//#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

2
Marlin/example_configurations/delta/generic/Configuration.h

@ -480,7 +480,7 @@
// Trim adjustments for individual towers
// tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0
// measured in degrees anticlockwise looking from above the printer
#define DELTA_TOWER_ANGLE_TRIM { -0.00, -0.00 } // get these from auto calibrate
#define DELTA_TOWER_ANGLE_TRIM { 0.00, 0.00, 0.00 } // get these from auto calibrate
// delta radius and diaginal rod adjustments measured in mm
//#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

2
Marlin/example_configurations/delta/kossel_mini/Configuration.h

@ -478,7 +478,7 @@
// Trim adjustments for individual towers
// tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0
// measured in degrees anticlockwise looking from above the printer
#define DELTA_TOWER_ANGLE_TRIM { -0.00, -0.00 } // get these from auto calibrate
#define DELTA_TOWER_ANGLE_TRIM { 0.00, 0.00, 0.00 } // get these from auto calibrate
// delta radius and diaginal rod adjustments measured in mm
//#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

2
Marlin/example_configurations/delta/kossel_pro/Configuration.h

@ -467,7 +467,7 @@
// Trim adjustments for individual towers
// tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0
// measured in degrees anticlockwise looking from above the printer
#define DELTA_TOWER_ANGLE_TRIM { -0.00, -0.00 } // get these from auto calibrate
#define DELTA_TOWER_ANGLE_TRIM { 0.00, 0.00, 0.00 } // get these from auto calibrate
// delta radius and diaginal rod adjustments measured in mm
//#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

2
Marlin/example_configurations/delta/kossel_xl/Configuration.h

@ -483,7 +483,7 @@
// Trim adjustments for individual towers
// tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0
// measured in degrees anticlockwise looking from above the printer
#define DELTA_TOWER_ANGLE_TRIM { -0.00, -0.00 } // get these from auto calibrate
#define DELTA_TOWER_ANGLE_TRIM { 0.00, 0.00, 0.00 } // get these from auto calibrate
// delta radius and diaginal rod adjustments measured in mm
//#define DELTA_RADIUS_TRIM_TOWER {0.0, 0.0, 0.0}

Loading…
Cancel
Save