Updated limit/homing routine. Works, but needs more TLC.
- Added acceleration to the homing routine. - Homing now accounts for different step rates when moving multiple axes without exceeding acceleration limits. - Homing now updates all internal positioning variables to machine zero after completion. - "Poor-man's" debounce delay added. - Updated the delay_us() function to perform faster and more accurate microsecond delays. Previously, the single increments would add noticeable time drift for larger delays. - Fix a bug in the stepper.c prescalar calculations that was changed in the last commit. - Other minor fixes.
This commit is contained in:
@ -481,6 +481,12 @@ void plan_set_current_position(int32_t x, int32_t y, int32_t z)
|
||||
pl.position[Z_AXIS] = z;
|
||||
}
|
||||
|
||||
// Clear planner position vector. Called by homing routine.
|
||||
void plan_clear_position()
|
||||
{
|
||||
clear_vector(pl.position);
|
||||
}
|
||||
|
||||
// Re-initialize buffer plan with a partially completed block, assumed to exist at the buffer tail.
|
||||
// Called after a steppers have come to a complete stop for a feed hold and the cycle is stopped.
|
||||
void plan_cycle_reinitialize(int32_t step_events_remaining)
|
||||
|
Reference in New Issue
Block a user