Skip to content

Commit

Permalink
idler: adjust distance threshold
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gudnimg committed Dec 27, 2024
1 parent 0e3d61b commit 1061b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/idler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Idler::FinishMove() {
}

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;
}

Expand Down

0 comments on commit 1061b5d

Please sign in to comment.