🔧 MPC adjustments (#25986)
This commit is contained in:
@@ -686,13 +686,13 @@
|
|||||||
/**
|
/**
|
||||||
* Model Predictive Control for hotend
|
* Model Predictive Control for hotend
|
||||||
*
|
*
|
||||||
* Use a physical model of the hotend to control temperature. When configured correctly
|
* Use a physical model of the hotend to control temperature. When configured correctly this gives
|
||||||
* this gives better responsiveness and stability than PID and it also removes the need
|
* better responsiveness and stability than PID and removes the need for PID_EXTRUSION_SCALING
|
||||||
* for PID_EXTRUSION_SCALING and PID_FAN_SCALING. Use M306 T to autotune the model.
|
* and PID_FAN_SCALING. Enable MPC_AUTOTUNE and use M306 T to autotune the model.
|
||||||
* @section mpctemp
|
* @section mpctemp
|
||||||
*/
|
*/
|
||||||
#if ENABLED(MPCTEMP)
|
#if ENABLED(MPCTEMP)
|
||||||
//#define MPC_AUTOTUNE // Include a method to do MPC auto-tuning (~6.3K bytes of flash)
|
#define MPC_AUTOTUNE // Include a method to do MPC auto-tuning (~6.3K bytes of flash)
|
||||||
//#define MPC_EDIT_MENU // Add MPC editing to the "Advanced Settings" menu. (~1.3K bytes of flash)
|
//#define MPC_EDIT_MENU // Add MPC editing to the "Advanced Settings" menu. (~1.3K bytes of flash)
|
||||||
//#define MPC_AUTOTUNE_MENU // Add MPC auto-tuning to the "Advanced Settings" menu. (~350 bytes of flash)
|
//#define MPC_AUTOTUNE_MENU // Add MPC auto-tuning to the "Advanced Settings" menu. (~350 bytes of flash)
|
||||||
|
|
||||||
@@ -715,8 +715,12 @@
|
|||||||
//#define MPC_FAN_0_ACTIVE_HOTEND
|
//#define MPC_FAN_0_ACTIVE_HOTEND
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Filament Heat Capacity (joules/kelvin/mm)
|
||||||
|
// Set at runtime with M306 H<value>
|
||||||
#define FILAMENT_HEAT_CAPACITY_PERMM { 5.6e-3f } // 0.0056 J/K/mm for 1.75mm PLA (0.0149 J/K/mm for 2.85mm PLA).
|
#define FILAMENT_HEAT_CAPACITY_PERMM { 5.6e-3f } // 0.0056 J/K/mm for 1.75mm PLA (0.0149 J/K/mm for 2.85mm PLA).
|
||||||
//#define FILAMENT_HEAT_CAPACITY_PERMM { 3.6e-3f } // 0.0036 J/K/mm for 1.75mm PETG (0.0094 J/K/mm for 2.85mm PETG).
|
// 0.0036 J/K/mm for 1.75mm PETG (0.0094 J/K/mm for 2.85mm PETG).
|
||||||
|
// 0.00515 J/K/mm for 1.75mm ABS (0.0137 J/K/mm for 2.85mm ABS).
|
||||||
|
// 0.00522 J/K/mm for 1.75mm Nylon (0.0138 J/K/mm for 2.85mm Nylon).
|
||||||
|
|
||||||
// Advanced options
|
// Advanced options
|
||||||
#define MPC_SMOOTHING_FACTOR 0.5f // (0.0...1.0) Noisy temperature sensors may need a lower value for stabilization.
|
#define MPC_SMOOTHING_FACTOR 0.5f // (0.0...1.0) Noisy temperature sensors may need a lower value for stabilization.
|
||||||
|
Reference in New Issue
Block a user