|
21 | 21 | */
|
22 | 22 | #pragma once
|
23 | 23 |
|
24 |
| -#define CONFIG_EXAMPLES_DIR "config/examples/Artillery/Sidewinder X2" |
| 24 | +#define CONFIG_EXAMPLES_DIR "config/examples/Artillery/Sidewinder X2" |
25 | 25 |
|
26 | 26 | /**
|
27 | 27 | * Configuration.h
|
|
115 | 115 | * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000]
|
116 | 116 | */
|
117 | 117 | #define BAUDRATE 250000
|
| 118 | + |
118 | 119 | #define BAUD_RATE_GCODE // Enable G-code M575 to set the baud rate
|
119 | 120 |
|
120 | 121 | /**
|
|
658 | 659 | //============================= PID Settings ================================
|
659 | 660 | //===========================================================================
|
660 | 661 |
|
661 |
| -// Enable PIDTEMP for PID control or MPCTEMP for Predictive Model. |
662 |
| -// temperature control. Disable both for bang-bang heating. |
663 |
| -#define PIDTEMP // See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning |
664 |
| -//#define MPCTEMP // ** EXPERIMENTAL ** |
| 662 | +// @section hotend temp |
| 663 | + |
| 664 | +/** |
| 665 | + * Temperature Control |
| 666 | + * |
| 667 | + * (NONE) : Bang-bang heating |
| 668 | + * PIDTEMP : PID temperature control (~4.1K) |
| 669 | + * MPCTEMP : Predictive Model temperature control. (~1.8K without auto-tune) |
| 670 | + */ |
| 671 | +#define PIDTEMP // See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning |
| 672 | +//#define MPCTEMP // ** EXPERIMENTAL ** See https://marlinfw.org/docs/features/model_predictive_control.html |
665 | 673 |
|
666 |
| -#define BANG_MAX 255 // Limits current to nozzle while in bang-bang mode; 255=full current |
667 |
| -#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current |
668 |
| -#define PID_K1 0.95 // Smoothing factor within any PID loop |
| 674 | +#define PID_MAX 255 // Limit hotend current while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current |
| 675 | +#define PID_K1 0.95 // Smoothing factor within any PID loop |
669 | 676 |
|
670 | 677 | #if ENABLED(PIDTEMP)
|
671 | 678 | //#define PID_DEBUG // Print PID debug data to the serial port. Use 'M303 D' to toggle activation.
|
|
762 | 769 | */
|
763 | 770 | #define PIDTEMPBED
|
764 | 771 |
|
765 |
| -//#define BED_LIMIT_SWITCHING |
766 |
| - |
767 |
| -/** |
768 |
| - * Max Bed Power |
769 |
| - * Applies to all forms of bed control (PID, bang-bang, and bang-bang with hysteresis). |
770 |
| - * When set to any value below 255, enables a form of PWM to the bed that acts like a divider |
771 |
| - * so don't use it unless you are OK with PWM on your bed. (See the comment on enabling PIDTEMPBED) |
772 |
| - */ |
773 |
| -#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current |
774 |
| - |
775 | 772 | #if ENABLED(PIDTEMPBED)
|
776 | 773 | //#define MIN_BED_POWER 0
|
777 | 774 | //#define PID_BED_DEBUG // Print Bed PID debug data to the serial port.
|
|
1408 | 1405 | #define Z_PROBE_RETRACT_X X_MAX_POS
|
1409 | 1406 | #endif
|
1410 | 1407 |
|
1411 |
| -// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J |
| 1408 | +/** |
| 1409 | + * Magnetically Mounted Probe |
| 1410 | + * For probes such as Euclid, Klicky, Klackender, etc. |
| 1411 | + */ |
| 1412 | +//#define MAG_MOUNTED_PROBE |
| 1413 | +#if ENABLED(MAG_MOUNTED_PROBE) |
| 1414 | + #define PROBE_DEPLOY_FEEDRATE (133*60) // (mm/min) Probe deploy speed |
| 1415 | + #define PROBE_STOW_FEEDRATE (133*60) // (mm/min) Probe stow speed |
| 1416 | + |
| 1417 | + #define MAG_MOUNTED_DEPLOY_1 { PROBE_DEPLOY_FEEDRATE, { 245, 114, 30 } } // Move to side Dock & Attach probe |
| 1418 | + #define MAG_MOUNTED_DEPLOY_2 { PROBE_DEPLOY_FEEDRATE, { 210, 114, 30 } } // Move probe off dock |
| 1419 | + #define MAG_MOUNTED_DEPLOY_3 { PROBE_DEPLOY_FEEDRATE, { 0, 0, 0 } } // Extra move if needed |
| 1420 | + #define MAG_MOUNTED_DEPLOY_4 { PROBE_DEPLOY_FEEDRATE, { 0, 0, 0 } } // Extra move if needed |
| 1421 | + #define MAG_MOUNTED_DEPLOY_5 { PROBE_DEPLOY_FEEDRATE, { 0, 0, 0 } } // Extra move if needed |
| 1422 | + #define MAG_MOUNTED_STOW_1 { PROBE_STOW_FEEDRATE, { 245, 114, 20 } } // Move to dock |
| 1423 | + #define MAG_MOUNTED_STOW_2 { PROBE_STOW_FEEDRATE, { 245, 114, 0 } } // Place probe beside remover |
| 1424 | + #define MAG_MOUNTED_STOW_3 { PROBE_STOW_FEEDRATE, { 230, 114, 0 } } // Side move to remove probe |
| 1425 | + #define MAG_MOUNTED_STOW_4 { PROBE_STOW_FEEDRATE, { 210, 114, 20 } } // Side move to remove probe |
| 1426 | + #define MAG_MOUNTED_STOW_5 { PROBE_STOW_FEEDRATE, { 0, 0, 0 } } // Extra move if needed |
| 1427 | +#endif |
| 1428 | + |
| 1429 | +// Duet Smart Effector (for delta printers) - https://docs.duet3d.com/en/Duet3D_hardware/Accessories/Smart_Effector |
1412 | 1430 | // When the pin is defined you can use M672 to set/reset the probe sensitivity.
|
1413 | 1431 | //#define DUET_SMART_EFFECTOR
|
1414 | 1432 | #if ENABLED(DUET_SMART_EFFECTOR)
|
|
1495 | 1513 | * | [-] |
|
1496 | 1514 | * O-- FRONT --+
|
1497 | 1515 | */
|
1498 |
| -#define NOZZLE_TO_PROBE_OFFSET { 27.25, -12.8, -1 } |
| 1516 | +#define NOZZLE_TO_PROBE_OFFSET { 27.25, -12.8, -2 } |
1499 | 1517 |
|
1500 | 1518 | // Most probes should stay away from the edges of the bed, but
|
1501 | 1519 | // with NOZZLE_AS_PROBE this can be negative for a wider probing area.
|
|
1787 | 1805 | #if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
1788 | 1806 | #define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
|
1789 | 1807 | #define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
|
1790 |
| - #define FIL_RUNOUT_PIN PA0 // Sets the Filament Runout sensor to the Z Endstop so that u can monitor it with Octoprint |
| 1808 | + #define FIL_RUNOUT_PIN PA0 |
1791 | 1809 | #define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.
|
1792 | 1810 | #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
1793 | 1811 | //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
|
0 commit comments