Added option to disable heat management during travel moves, on by default. This helps a lot in avoiding missing steps, hence increasing reliability

This commit is contained in:
Emanuele Caruso 2011-06-05 06:24:20 +02:00
parent 08e61b287f
commit 4689ab10ef
2 changed files with 10 additions and 2 deletions

View file

@ -1058,14 +1058,20 @@ void linear_move(unsigned long axis_steps_remaining[]) // make linear move with
#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();
#ifdef DISABLE_CHECK_DURING_TRAVEL
if(delta[3] > 0)
#endif
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();
#ifdef DISABLE_CHECK_DURING_TRAVEL
if(delta[3] > 0)
#endif
manage_heater();
#endif
#endif
#ifdef RAMP_ACCELERATION

View file

@ -62,6 +62,8 @@ float min_constant_speed_units = 2; // the minimum units of an accelerated move
//Uncomment the following line to disable heat management during the move
//#define DISABLE_CHECK_DURING_MOVE
#endif
//Comment the following line to disable heat management during travel moves. Probably this should be commented if using PID.
#define DISABLE_CHECK_DURING_TRAVEL
//Experimental temperature smoothing - only uncomment this if your temp readings are noisy
//#define SMOOTHING 1