Allowing #define DELTA_TOWER_ANGLE_TRIM[C_AXIS]

More consistent with M665 where C-value is allowed as well, then
normalized
2.0.x
LVD-AC 8 years ago committed by teemuatlut
parent 244f67590e
commit dcf30a69d6

@ -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}

@ -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);
}

@ -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)

@ -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}

@ -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}

@ -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}

@ -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}

@ -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}

@ -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