Get rid of E_STARTSTOP_STEPS.

This meant to be a firmware-provided retract feature but was
never really supported by G-code generators. Without their support
(by issueing M101/M103), it's pretty hard to detect extrusion
pauses, so this feature simply has no future.

As this was on by default, it saves over 200 bytes binary size
in a default configuration.
This commit is contained in:
Markus Hitter 2014-05-24 15:11:41 +02:00
parent c35d1c1caf
commit 7611872baa
13 changed files with 0 additions and 71 deletions

View File

@ -94,9 +94,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -95,9 +95,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -96,9 +96,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -102,9 +102,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 289
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -102,9 +102,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 289
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -96,10 +96,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 0
/** /**
Soft axis limits, in mm Soft axis limits, in mm
undefine if you don't want to use them undefine if you don't want to use them

View File

@ -96,9 +96,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 0
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -95,10 +95,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -95,10 +95,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -102,9 +102,6 @@
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -109,9 +109,6 @@ MXL 2.032 mm/tooth, 29
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -110,9 +110,6 @@ GT2 2.000 mm/tooth, 20 teeth
*/ */
// #define SLOW_HOMING // #define SLOW_HOMING
/// this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20
/** /**
Soft axis limits, in mm. Soft axis limits, in mm.
Define them to your machine's size relative to what your host considers to be the origin. Define them to your machine's size relative to what your host considers to be the origin.

View File

@ -34,20 +34,6 @@ uint8_t tool;
uint8_t next_tool; uint8_t next_tool;
/*
private functions
this is where we construct a move without a gcode command, useful for gcodes which require multiple moves eg; homing
*/
#if E_STARTSTOP_STEPS > 0
/// move E by a certain amount at a certain speed
static void SpecialMoveE(int32_t e, uint32_t f) {
TARGET t = { 0L, 0L, 0L, e, f, 1 };
enqueue(&t);
}
#endif /* E_STARTSTOP_STEPS > 0 */
/************************************************************************//** /************************************************************************//**
\brief Processes command stored in global \ref next_target. \brief Processes command stored in global \ref next_target.
@ -424,19 +410,9 @@ void process_gcode_command() {
} }
#ifdef DC_EXTRUDER #ifdef DC_EXTRUDER
heater_set(DC_EXTRUDER, DC_EXTRUDER_PWM); heater_set(DC_EXTRUDER, DC_EXTRUDER_PWM);
#elif E_STARTSTOP_STEPS > 0
do {
// backup feedrate, move E very quickly then restore feedrate
backup_f = startpoint.F;
startpoint.F = MAXIMUM_FEEDRATE_E;
SpecialMoveE(E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E);
startpoint.F = backup_f;
} while (0);
#endif #endif
break; break;
// M102- extruder reverse
// M5/M103- extruder off // M5/M103- extruder off
case 5: case 5:
case 103: case 103:
@ -445,14 +421,6 @@ void process_gcode_command() {
//? Undocumented. //? Undocumented.
#ifdef DC_EXTRUDER #ifdef DC_EXTRUDER
heater_set(DC_EXTRUDER, 0); heater_set(DC_EXTRUDER, 0);
#elif E_STARTSTOP_STEPS > 0
do {
// backup feedrate, move E very quickly then restore feedrate
backup_f = startpoint.F;
startpoint.F = MAXIMUM_FEEDRATE_E;
SpecialMoveE(-E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E);
startpoint.F = backup_f;
} while (0);
#endif #endif
break; break;