Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Track the homing status of the selector #134

Open
eamars opened this issue Aug 5, 2022 · 0 comments
Open

Improvement: Track the homing status of the selector #134

eamars opened this issue Aug 5, 2022 · 0 comments

Comments

@eamars
Copy link
Contributor

eamars commented Aug 5, 2022

I came across this idea when working on my ERCF code. Hopefully my proposed solution could improve the overall robustness of the selector motion.

The idea is to mimic the current printer design, that is, when the axis is not homed then it should'nt move. In this case, the selector shouldn't move if its location is unknown. This can be achieved by using an variable to track the current position, say the _current_tool. The variable got reset on

  • Printer connect
  • M18/M84 command is issued.
  • ERCF_MOTORS_OFF is called.

The selector move command shall use this variable to determine whether the selector is homed or whether it need to move, instead of "attempting to move" causing extra variations.

Please let me know if you have any comment on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant