-
Notifications
You must be signed in to change notification settings - Fork 19
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
idler/selector: simplify init #343
base: main
Are you sure you want to change the base?
Conversation
The homing is always invalidated in all cases. Let's simply invalidate the homing only in the init method. The state machine's Ready state then decides when it is OK to perform the homing move. We shouldn't need to guess the axis's position, and should assume its not correct. Currently the init methods are only called during the boot up sequence. Change in memory: Flash: -126 bytes SRAM: 0 bytes
All values in bytes. Δ Delta to base
|
Automated Test Code Coverage ReportView details...
TOTAL: 2721 lines of code, 2030 lines executed, 74% covered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit suspicious of the selector changes. Need to check if the mmu can unload from the scenario of reset with filament loaded. Previously the axis position was invalidated, but the position itself still matched the loaded slot. Now it no longer matches and I wonder if the logic properly handles that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please be very careful in this case - invalidation of positions has been a subject to many internal discussions. I'm afraid your proposal changes some edge cases which are probably not covered with the unit tests
The homing is always invalidated in all cases. Let's simply invalidate the homing only in the init method. The state machine's
Ready
state then decides when it is OK to perform the homing move.We shouldn't need to guess the axis's position, its safer (and simpler) to assume its always incorrect. Currently the init methods are only called during the boot up sequence.
This change passes the unit tests
Change in memory:
Flash: -126 bytes
SRAM: 0 bytes