Added options that allow to disable heating management during acceleration or during the whole move

This commit is contained in:
Emanuele Caruso 2011-05-21 01:51:29 +02:00
parent 181df1fe73
commit a89f443eb2
2 changed files with 19 additions and 3 deletions

View file

@ -1090,9 +1090,19 @@ void linear_move(unsigned long axis_steps_remaining[]) // make linear move with
//move until no more steps remain
while(axis_steps_remaining[0] + axis_steps_remaining[1] + axis_steps_remaining[2] + axis_steps_remaining[3] > 0) {
//If more that HEATER_CHECK_INTERVAL ms have passed since previous heating check, adjust temp
manage_heater();
manage_inactivity(2);
#ifdef DISABLE_CHECK_DURING_ACC
if(!accelerating && !decelerating) {
//If more that HEATER_CHECK_INTERVAL ms have passed since previous heating check, adjust temp
manage_heater();
}
#else
#ifdef DISABLE_CHECK_DURING_MOVE
{} //Do nothing
#else
//If more that HEATER_CHECK_INTERVAL ms have passed since previous heating check, adjust temp
manage_heater();
#endif
#endif
#ifdef RAMP_ACCELERATION
//If acceleration is enabled on this move and we are in the acceleration segment, calculate the current interval
if (acceleration_enabled && steps_done == 0) {

View file

@ -56,6 +56,12 @@ float min_constant_speed_units = 2; // the minimum units of an accelerated move
//How often should the heater check for new temp readings, in milliseconds
#define HEATER_CHECK_INTERVAL 50
#define BED_CHECK_INTERVAL 5000
//Uncomment the following line to disable heat management during acceleration
//#define DISABLE_CHECK_DURING_ACC
#ifndef DISABLE_CHECK_DURING_ACC
//Uncomment the following line to disable heat management during the move
//#define DISABLE_CHECK_DURING_MOVE
#endif
//Experimental temperature smoothing - only uncomment this if your temp readings are noisy
//#define SMOOTHING 1