Another homing cycle fix.
- The homing cycle should be working again. Reverted it back to how it was about a month ago before I started to fiddle with it. Turns out that my past self knew what he was doing.
This commit is contained in:
parent
76730176da
commit
e832595e6d
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
// Grbl versioning system
|
// Grbl versioning system
|
||||||
#define GRBL_VERSION "0.9i"
|
#define GRBL_VERSION "0.9i"
|
||||||
#define GRBL_VERSION_BUILD "20150302"
|
#define GRBL_VERSION_BUILD "20150307"
|
||||||
|
|
||||||
// Define standard libraries used by Grbl.
|
// Define standard libraries used by Grbl.
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
@ -168,10 +168,14 @@ void limits_go_home(uint8_t cycle_mask)
|
|||||||
// Set target location for active axes and setup computation for homing rate.
|
// Set target location for active axes and setup computation for homing rate.
|
||||||
if (bit_istrue(cycle_mask,bit(idx))) {
|
if (bit_istrue(cycle_mask,bit(idx))) {
|
||||||
n_active_axis++;
|
n_active_axis++;
|
||||||
if (bit_istrue(settings.homing_dir_mask,bit(idx))) { max_travel = -max_travel; }
|
// Set target direction based on cycle mask and homing cycle approach state.
|
||||||
if (!approach) { max_travel = -max_travel; }
|
if (bit_istrue(settings.homing_dir_mask,bit(idx))) {
|
||||||
target[idx] += max_travel;
|
if (approach) { target[idx] -= max_travel; }
|
||||||
|
else { target[idx] += max_travel; }
|
||||||
|
} else {
|
||||||
|
if (approach) { target[idx] += max_travel; }
|
||||||
|
else { target[idx] -= max_travel; }
|
||||||
|
}
|
||||||
// Apply axislock to the step port pins active in this cycle.
|
// Apply axislock to the step port pins active in this cycle.
|
||||||
axislock |= step_pin[idx];
|
axislock |= step_pin[idx];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user