|
@@ -309,37 +309,35 @@ bool target_direction;
|
309
|
309
|
;
|
310
|
310
|
#endif
|
311
|
311
|
|
312
|
|
-#if defined(DELTA) || defined(SCARA)
|
313
|
|
- static float delta[3] = { 0, 0, 0 };
|
314
|
|
- #ifdef DELTA
|
315
|
|
- #define SIN_60 0.8660254037844386
|
316
|
|
- #define COS_60 0.5
|
317
|
|
- float endstop_adj[3] = { 0 };
|
318
|
|
- // these are the default values, can be overriden with M665
|
319
|
|
- float delta_radius = DELTA_RADIUS;
|
320
|
|
- float delta_tower1_x = -SIN_60 * delta_radius; // front left tower
|
321
|
|
- float delta_tower1_y = -COS_60 * delta_radius;
|
322
|
|
- float delta_tower2_x = SIN_60 * delta_radius; // front right tower
|
323
|
|
- float delta_tower2_y = -COS_60 * delta_radius;
|
324
|
|
- float delta_tower3_x = 0; // back middle tower
|
325
|
|
- float delta_tower3_y = delta_radius;
|
326
|
|
- float delta_diagonal_rod = DELTA_DIAGONAL_ROD;
|
327
|
|
- float delta_diagonal_rod_2 = sq(delta_diagonal_rod);
|
328
|
|
- float delta_segments_per_second = DELTA_SEGMENTS_PER_SECOND;
|
329
|
|
- #ifdef ENABLE_AUTO_BED_LEVELING
|
330
|
|
- int delta_grid_spacing[2] = { 0, 0 };
|
331
|
|
- float bed_level[AUTO_BED_LEVELING_GRID_POINTS][AUTO_BED_LEVELING_GRID_POINTS];
|
332
|
|
- #endif
|
333
|
|
- #endif
|
334
|
|
-
|
335
|
|
- #ifdef SCARA
|
336
|
|
- float axis_scaling[3] = { 1, 1, 1 }; // Build size scaling, default to 1
|
|
312
|
+#ifdef DELTA
|
|
313
|
+ float delta[3] = { 0 };
|
|
314
|
+ #define SIN_60 0.8660254037844386
|
|
315
|
+ #define COS_60 0.5
|
|
316
|
+ float endstop_adj[3] = { 0 };
|
|
317
|
+ // these are the default values, can be overriden with M665
|
|
318
|
+ float delta_radius = DELTA_RADIUS;
|
|
319
|
+ float delta_tower1_x = -SIN_60 * delta_radius; // front left tower
|
|
320
|
+ float delta_tower1_y = -COS_60 * delta_radius;
|
|
321
|
+ float delta_tower2_x = SIN_60 * delta_radius; // front right tower
|
|
322
|
+ float delta_tower2_y = -COS_60 * delta_radius;
|
|
323
|
+ float delta_tower3_x = 0; // back middle tower
|
|
324
|
+ float delta_tower3_y = delta_radius;
|
|
325
|
+ float delta_diagonal_rod = DELTA_DIAGONAL_ROD;
|
|
326
|
+ float delta_diagonal_rod_2 = sq(delta_diagonal_rod);
|
|
327
|
+ float delta_segments_per_second = DELTA_SEGMENTS_PER_SECOND;
|
|
328
|
+ #ifdef ENABLE_AUTO_BED_LEVELING
|
|
329
|
+ int delta_grid_spacing[2] = { 0, 0 };
|
|
330
|
+ float bed_level[AUTO_BED_LEVELING_GRID_POINTS][AUTO_BED_LEVELING_GRID_POINTS];
|
337
|
331
|
#endif
|
338
|
|
-
|
339
|
|
-#elif !defined(DELTA)
|
|
332
|
+#else
|
340
|
333
|
static bool home_all_axis = true;
|
341
|
334
|
#endif
|
342
|
335
|
|
|
336
|
+#ifdef SCARA
|
|
337
|
+ static float delta[3] = { 0 };
|
|
338
|
+ float axis_scaling[3] = { 1, 1, 1 }; // Build size scaling, default to 1
|
|
339
|
+#endif
|
|
340
|
+
|
343
|
341
|
#ifdef FILAMENT_SENSOR
|
344
|
342
|
//Variables for Filament Sensor input
|
345
|
343
|
float filament_width_nominal = DEFAULT_NOMINAL_FILAMENT_DIA; //Set nominal filament width, can be changed with M404
|