dda.c: remove a few obsolete comments.
This commit is contained in:
parent
2421b788b9
commit
826f534fff
12
dda.c
12
dda.c
|
|
@ -355,7 +355,6 @@ void dda_create(DDA *dda, TARGET *target) {
|
||||||
#ifdef ACCELERATION_STEEPNESS
|
#ifdef ACCELERATION_STEEPNESS
|
||||||
#error ACCELERATION_STEEPNESS is gone, review your config.h and use ACCELERATION
|
#error ACCELERATION_STEEPNESS is gone, review your config.h and use ACCELERATION
|
||||||
#endif
|
#endif
|
||||||
// c is initial step time in IOclk ticks (currently, IOclk ticks = F_CPU)
|
|
||||||
// yes, this assumes always the x axis as the critical one regarding acceleration. If we want to implement per-axis acceleration, things get tricky ...
|
// yes, this assumes always the x axis as the critical one regarding acceleration. If we want to implement per-axis acceleration, things get tricky ...
|
||||||
dda->c_min = (move_duration / target->F) << 8;
|
dda->c_min = (move_duration / target->F) << 8;
|
||||||
if (dda->c_min < c_limit)
|
if (dda->c_min < c_limit)
|
||||||
|
|
@ -402,12 +401,6 @@ void dda_start(DDA *dda) {
|
||||||
// keep dda->live = 0
|
// keep dda->live = 0
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* if (dda->waitfor_temp) {
|
|
||||||
#ifndef REPRAP_HOST_COMPATIBILITY
|
|
||||||
serial_writestr_P(PSTR("Waiting for target temp\n"));
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else {*/
|
|
||||||
// get ready to go
|
// get ready to go
|
||||||
steptimeout = 0;
|
steptimeout = 0;
|
||||||
if (dda->z_delta)
|
if (dda->z_delta)
|
||||||
|
|
@ -424,8 +417,6 @@ void dda_start(DDA *dda) {
|
||||||
heater_set(DC_EXTRUDER, DC_EXTRUDER_PWM);
|
heater_set(DC_EXTRUDER, DC_EXTRUDER_PWM);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// ensure this dda starts
|
// ensure this dda starts
|
||||||
dda->live = 1;
|
dda->live = 1;
|
||||||
|
|
||||||
|
|
@ -444,7 +435,7 @@ void dda_start(DDA *dda) {
|
||||||
/*! STEP
|
/*! STEP
|
||||||
\param *dda the current move
|
\param *dda the current move
|
||||||
|
|
||||||
This is called from our timer interrupt every time a step needs to occur.
|
This is called from our timer interrupt every time a step needs to occur. Keep it as simple as possible!
|
||||||
We first work out which axes need to step, and generate step pulses for them
|
We first work out which axes need to step, and generate step pulses for them
|
||||||
Then we re-enable global interrupts so serial data reception and other important things can occur while we do some math.
|
Then we re-enable global interrupts so serial data reception and other important things can occur while we do some math.
|
||||||
Next, we work out how long until our next step using the selected acceleration algorithm and set the timer.
|
Next, we work out how long until our next step using the selected acceleration algorithm and set the timer.
|
||||||
|
|
@ -454,7 +445,6 @@ void dda_start(DDA *dda) {
|
||||||
\todo take into account the time that interrupt takes to run
|
\todo take into account the time that interrupt takes to run
|
||||||
*/
|
*/
|
||||||
void dda_step(DDA *dda) {
|
void dda_step(DDA *dda) {
|
||||||
// called from interrupt context! keep it as simple as possible
|
|
||||||
uint8_t did_step = 0;
|
uint8_t did_step = 0;
|
||||||
|
|
||||||
if ((dda->x_steps) /* &&
|
if ((dda->x_steps) /* &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue