Skip to content

Commit

Permalink
Increase homing length (#130)
Browse files Browse the repository at this point in the history
* Increased homing distance

Increased from 300 to 1000mm.
There was homing timeouts if you used 500mm rail or longer

* Decreased to 750mm

This now matches a timeout of 30s and balances flexible use case and convenience for average user.

* Adjusted time to match length

Timeout is for entire procedure not each direction.

---------

Co-authored-by: armpitMFG <armpitmfg@gmail.com>
  • Loading branch information
research-and-desire and armpitMFG authored Nov 22, 2024
1 parent b710c03 commit 407195d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Software/src/constants/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace Config {
// belt attachments subtract the linear block holder length (75mm on
// OSSM) Recommended to also subtract e.g. 20mm to keep the backstop
// well away from the device.
constexpr float maxStrokeSteps = 300.0_mm;
constexpr float maxStrokeSteps = 500.0_mm;

// If the stroke length is less than this value, then the stroke is
// likely the result of a poor homing.
Expand Down
2 changes: 1 addition & 1 deletion Software/src/ossm/OSSM.Homing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void OSSM::startHomingTask(void *pvParameters) {
// 'portTICK_PERIOD_MS' is the number of milliseconds per tick.
uint32_t msPassed = xTicksPassed * portTICK_PERIOD_MS;

if (msPassed > 30000) {
if (msPassed > 40000) {
ESP_LOGE("Homing", "Homing took too long. Check power and restart");
ossm->errorMessage = UserConfig::language.HomingTookTooLong;
ossm->sm->process_event(Error{});
Expand Down

0 comments on commit 407195d

Please sign in to comment.