Преглед изворни кода

revert COnfiguratiuon to the same as head

Jim Morris пре 11 година
родитељ
комит
ab624eac2a
2 измењених фајлова са 5 додато и 88 уклоњено
  1. 3
    78
      Marlin/Configuration.h
  2. 2
    10
      Marlin/Configuration_adv.h

+ 3
- 78
Marlin/Configuration.h Прегледај датотеку

@@ -74,7 +74,7 @@
74 74
 //===========================================================================
75 75
 //============================== Delta Settings =============================
76 76
 //===========================================================================
77
-// Enable DELTA kinematics and most of the default configuration for Deltas
77
+// Enable DELTA kinematics
78 78
 //#define DELTA
79 79
 
80 80
 // Make delta curves from many straight lines (linear interpolation).
@@ -278,26 +278,11 @@
278 278
 #endif
279 279
 
280 280
 // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
281
-#ifdef DELTA
282
-const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
283
-const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
284
-const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
285
-
286
-#else
287 281
 const bool X_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
288 282
 const bool Y_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
289 283
 const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
290
-#endif // DELTA
291
-
292
-#ifdef DELTA
293
-// deltas never have min endstops
294
-#define DISABLE_MIN_ENDSTOPS
295
-
296
-#else
297
-
298 284
 //#define DISABLE_MAX_ENDSTOPS
299 285
 //#define DISABLE_MIN_ENDSTOPS
300
-#endif // delta
301 286
 
302 287
 // Disable max endstops for compatibility with endstop checking routine
303 288
 #if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
@@ -316,58 +301,28 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
316 301
 #define DISABLE_Z false
317 302
 #define DISABLE_E false // For all extruders
318 303
 
319
-#ifdef DELTA
320
-#define INVERT_X_DIR false // DELTA does not invert
321
-#define INVERT_Y_DIR false
322
-#define INVERT_Z_DIR false
323
-
324
-#else
325
-
326
-#define INVERT_X_DIR true     // for Mendel set to false, for Orca set to true
304
+#define INVERT_X_DIR true    // for Mendel set to false, for Orca set to true
327 305
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
328 306
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
329
-#endif // DELTA
330
-
331 307
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
332 308
 #define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
333 309
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
334 310
 
335 311
 // ENDSTOP SETTINGS:
336 312
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
337
-#ifdef DELTA
338
-// deltas always home to max
339
-#define X_HOME_DIR 1
340
-#define Y_HOME_DIR 1
341
-#define Z_HOME_DIR 1
342
-
343
-#else
344
-
345 313
 #define X_HOME_DIR -1
346 314
 #define Y_HOME_DIR -1
347 315
 #define Z_HOME_DIR -1
348
-#endif // delta
349 316
 
350 317
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
351 318
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
352
-
353 319
 // Travel limits after homing
354
-#ifdef DELTA
355
-#define X_MAX_POS 90
356
-#define X_MIN_POS -90
357
-#define Y_MAX_POS 90
358
-#define Y_MIN_POS -90
359
-#define Z_MAX_POS MANUAL_Z_HOME_POS
360
-#define Z_MIN_POS 0
361
-
362
-#else
363
-
364 320
 #define X_MAX_POS 205
365 321
 #define X_MIN_POS 0
366 322
 #define Y_MAX_POS 205
367 323
 #define Y_MIN_POS 0
368 324
 #define Z_MAX_POS 200
369 325
 #define Z_MIN_POS 0
370
-#endif // DELTA
371 326
 
372 327
 #define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
373 328
 #define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
@@ -378,48 +333,22 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
378 333
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
379 334
 
380 335
 //Manual homing switch locations:
381
-
382
-#ifdef DELTA
383
-#define MANUAL_HOME_POSITIONS  // MANUAL_*_HOME_POS below will be used
384 336
 // For deltabots this means top and center of the cartesian print volume.
385 337
 #define MANUAL_X_HOME_POS 0
386 338
 #define MANUAL_Y_HOME_POS 0
387
-#define MANUAL_Z_HOME_POS 250 // For delta: Distance between nozzle and print surface after homing.
388
-
389
-#else
390
-
391
-#define MANUAL_X_HOME_POS 0
392
-#define MANUAL_Y_HOME_POS 0
393 339
 #define MANUAL_Z_HOME_POS 0
394
-#endif // DELTA
340
+//#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
395 341
 
396 342
 //// MOVEMENT SETTINGS
397 343
 #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
398
-
399
-#ifdef DELTA
400
-// delta homing speeds must be the same on xyz
401
-#define HOMING_FEEDRATE {200*60, 200*60, 200*60, 0}  // set the homing speeds (mm/min)
402
-
403
-#else
404
-
405 344
 #define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0}  // set the homing speeds (mm/min)
406
-#endif // DELTA
407 345
 
408 346
 // default settings
409
-#ifdef DELTA
410
-// delta speeds must be the same on xyz
411
-#define DEFAULT_AXIS_STEPS_PER_UNIT   {80, 80, 80, 760*1.1}  // default steps per unit for Kossel (GT2, 20 tooth)
412
-#define DEFAULT_MAX_FEEDRATE          {500, 500, 500, 25}    // (mm/sec)
413
-#define DEFAULT_MAX_ACCELERATION      {9000,9000,9000,10000}    // 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.
414
-
415
-#else
416 347
 
417 348
 #define DEFAULT_AXIS_STEPS_PER_UNIT   {78.7402,78.7402,200.0*8/3,760*1.1}  // default steps per unit for Ultimaker
418 349
 #define DEFAULT_MAX_FEEDRATE          {500, 500, 5, 25}    // (mm/sec)
419 350
 #define DEFAULT_MAX_ACCELERATION      {9000,9000,100,10000}    // 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.
420 351
 
421
-#endif // DELTA
422
-
423 352
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E max acceleration in mm/s^2 for printing moves
424 353
 #define DEFAULT_RETRACT_ACCELERATION  3000   // X, Y, Z and E max acceleration in mm/s^2 for retracts
425 354
 
@@ -431,11 +360,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
431 360
 
432 361
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
433 362
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
434
-#ifdef DELTA
435
-#define DEFAULT_ZJERK                 20.0    // (mm/sec) Must be same as XY for delta
436
-#else
437 363
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
438
-#endif // DELTA
439 364
 #define DEFAULT_EJERK                 5.0    // (mm/sec)
440 365
 
441 366
 //===========================================================================

+ 2
- 10
Marlin/Configuration_adv.h Прегледај датотеку

@@ -173,13 +173,8 @@
173 173
     
174 174
 //homing hits the endstop, then retracts by this distance, before it tries to slowly bump again:
175 175
 #define X_HOME_RETRACT_MM 5 
176
-#define Y_HOME_RETRACT_MM 5
177
-#ifdef DELTA
178
-#define Z_HOME_RETRACT_MM 5
179
-#else
180
-#define Z_HOME_RETRACT_MM 1
181
-#endif
182
-
176
+#define Y_HOME_RETRACT_MM 5 
177
+#define Z_HOME_RETRACT_MM 1 
183 178
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
184 179
 
185 180
 #define AXIS_RELATIVE_MODES {false, false, false, false}
@@ -202,10 +197,7 @@
202 197
 #define DEFAULT_MINSEGMENTTIME        20000
203 198
 
204 199
 // If defined the movements slow down when the look ahead buffer is only half full
205
-// (don't use SLOWDOWN with DELTA because DELTA generates hundreds of segments per second)
206
-#ifndef DELTA
207 200
 #define SLOWDOWN
208
-#endif
209 201
 
210 202
 // Frequency limit
211 203
 // See nophead's blog for more info

Loading…
Откажи
Сачувај