saxi
saxi copied to clipboard
Various fixes needed to handle inverted up/down sense
(see #87 for context on when up/down sense is reversed)
When pausing
https://github.com/nornagon/saxi/blob/117161d27d9b37af8aae71dbc36d123cb92a96bf/src/server.ts#L198
When canceling
https://github.com/nornagon/saxi/blob/4d5c9918deb6f79bf97ac8eb561b39c7d668790e/src/server.ts#L161
When altering pen height of a plan without replanning
https://github.com/nornagon/saxi/blob/c6bd5a7ef984d9ca537904e6d58ce7490ca8a2e7/src/planning.ts#L291-L298
All of these need to be updated to take into account when the pen up position and pen down position are reversed, similar to:
https://github.com/nornagon/saxi/blob/c6bd5a7ef984d9ca537904e6d58ce7490ca8a2e7/src/planning.ts#L566
I noticed this last night and was thinking about putting together a PR. Have you started on the changes already?
Not yet! Happy to have contributions!
On Wed, Jul 7, 2021 at 18:53 Emma Simon @.***> wrote:
I noticed this last night and was thinking about putting together a PR. Have you started on the changes already?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nornagon/saxi/issues/90#issuecomment-876056430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKGACCB3PYVID4FPERTATTWUAHZANCNFSM475XRXNQ .
--
j
Been looking at the code and I'm not sure I have time to figure this out in the next few days if you think you can throw something together sooner. The change for altering height in planning.ts is super straightforward, but for pause/cancel I'm unsure about the best way to get the pen up/down configs into the server.ts listeners to check polarity, seems like it has no way to access them right now. I'd keep digging, but I need to sleep and I'm not sure I'll have time to look again for a little while.