summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware
diff options
context:
space:
mode:
authorEmanuele Caruso <emanuele.caruso@gmail.com>2011-06-05 06:24:20 +0200
committerEmanuele Caruso <emanuele.caruso@gmail.com>2011-06-05 06:24:20 +0200
commit4689ab10ef12951a20efb1713478056d17332421 (patch)
treea0290ba61ad8042f076e8a12defe23c983b2074c /Tonokip_Firmware
parent08e61b287f5cddce693a722a467bceeaadb60d2d (diff)
Added option to disable heat management during travel moves, on by default. This helps a lot in avoiding missing steps, hence increasing reliability
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde10
-rw-r--r--Tonokip_Firmware/configuration.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index ced29d9..535716e 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -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
diff --git a/Tonokip_Firmware/configuration.h b/Tonokip_Firmware/configuration.h
index d77b974..7710f82 100644
--- a/Tonokip_Firmware/configuration.h
+++ b/Tonokip_Firmware/configuration.h
@@ -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