You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scratchpad discussion for refactoring to move pen positions out from the individual motions, to the plan
/// current data in Plan classclassPlan{motions: Array<XYMotion|PenMotion>}classPenMotion{publicinitialPos: number;publicfinalPos: number;publicpDuration: number;}
I would suggest the following refactoring
Remove pDuration from PenMotion, and when executing motions, calculate the duration based on the current known position
Remove initialPos from PenMotion, as it is ignored when executing the S2 ebb command
Remove finalPos, and add a PenDirection enum that is either UP or DOWN
Store the pen up and down positions in the Plan, and index on the newly created direction enum
Scratchpad discussion for refactoring to move pen positions out from the individual motions, to the plan
I would suggest the following refactoring
S2
ebb commandPenDirection
enum that is eitherUP
orDOWN
Speculated impact
What else should we consider?
The text was updated successfully, but these errors were encountered: