idler: adjust distance threshold

Before, the axis limits had an error of 25° so 225° would actually be measured as 250°.

Now after fixing axisUnitToTruncatedUnit to return a more accurate value, the new values are lower. Adjust the distances by 20° to offset previous error.
pull/337/head
Guðni Már Gilbert 2024-12-27 18:18:29 +00:00
parent 0e3d61bedc
commit 1061b5d3ec
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ void Idler::FinishMove() {
} }
bool Idler::StallGuardAllowed(bool forward) const { bool Idler::StallGuardAllowed(bool forward) const {
const uint8_t checkDistance = forward ? 220 : 200; const uint8_t checkDistance = forward ? 200 : 180;
return AxisDistance(mm::axisUnitToTruncatedUnit<config::U_deg>(mm::motion.CurPosition<mm::Idler>())) > checkDistance; return AxisDistance(mm::axisUnitToTruncatedUnit<config::U_deg>(mm::motion.CurPosition<mm::Idler>())) > checkDistance;
} }