Planner bug fix.
- Oops! Misplace an if-then statement. Should work as advertised now. (Hopefully)
This commit is contained in:
parent
3082fdbb6d
commit
b7b31df3af
@ -222,6 +222,7 @@ static void planner_recalculate()
|
|||||||
next->recalculate_flag = true;
|
next->recalculate_flag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Recalculate if current block entry or exit junction speed has changed.
|
// Recalculate if current block entry or exit junction speed has changed.
|
||||||
if (current->recalculate_flag || next->recalculate_flag) {
|
if (current->recalculate_flag || next->recalculate_flag) {
|
||||||
@ -230,8 +231,6 @@ static void planner_recalculate()
|
|||||||
current->recalculate_flag = false; // Reset current only to ensure next trapezoid is computed
|
current->recalculate_flag = false; // Reset current only to ensure next trapezoid is computed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
block_index = next_block_index( block_index );
|
block_index = next_block_index( block_index );
|
||||||
}
|
}
|
||||||
// Last/newest block in buffer. Exit speed is set with MINIMUM_PLANNER_SPEED. Always recalculated.
|
// Last/newest block in buffer. Exit speed is set with MINIMUM_PLANNER_SPEED. Always recalculated.
|
||||||
|
Loading…
Reference in New Issue
Block a user