-
Notifications
You must be signed in to change notification settings - Fork 52
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
feature: VID2805 Dual Stepper Element #137
Conversation
99ac35e
to
1796961
Compare
Error message from Netlify:
You can probably see the same errors if you run
|
Thanks for the clarification @urish This now builds correctly.
Any help here would be appreciated |
Look at the Debugging Pin Info section of the Contributing guide to learn how to test it
I'm not sure if storybook supports groups of controls - you can take a quick look at their docs / examples and see if they do. Otherwise, you can probably use a prefix to separate the controls (e.g. |
@urish pinInfo stumps me... The SVG for the element is using specific size in mm, the pins are drawn using relative path operations and are scaled by
When returning pin info with the x coordinate the same as that specified in the path, the debug view shows the dots too close together:
When scaling the information in pinInfo by
I've pushed the code that depicts that - any help would be appreciated. |
…d the element is the appropriate size
@urish - managed to get the component and pins aligned and correct size - are you able to look at the component and accept/reject? |
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.
Thanks for working on this!
I left a bunch of comments. The most important point is regarding the innerHand
/ outerHand
attribute. The other points are mostly regarding naming convention, removing debug prints, improving code readability, etc.
One more important point is the name of the element. I looked at the datasheet, and it seems like the real part is called vid28-05
and not vid2805
, even though the datasheet describes it as vid28-xx
.
I suggest to go with wokwi-vid28-dual-stepper
. When you google "VID28" it comes up with images of this specific stepper motor, so the term "vid28" seems to be specific enough (and I prefer shorter names where possible).
ded0fde
to
81799e2
Compare
1. renamed component name tyo be more generic 2. remove debug stateents 3. added ornate hands 4. refactored hand path template expansion to be more TS/JS friendly 5. removed use of composite Hand classes as properties
81799e2
to
931a77b
Compare
Thanks! "ornate" is cool. I'll hope to go over the actual changes soon! |
and
I had to make this as large as it is to account for the longer arms - they extend beyond the base. If this is not compatible with the way Wokwi works, I am happy with your suggestion of reducing the maximum size. Thoughts? |
Right now, there's extra margin on the right side - the photo that I took in the previous has the largest arm size. I see two ways to go about this:
The first option will be faster, as the second one needs some changes on the Wokwi side as well. In any case, the pin positions / motor body should stay static even when you change the arm length. I hope this all makes sense to you. |
…lement size as much as possible. stopped moving the element based on hand size as requested.
@urish - another update, addressing the comments I believe |
Thank you! |
Adding a new element to represent a common dual stepper - the VID28-05
The part looks like this:
The component looks like this (top view):
and with shorter hands:
The part has two sets of the typical stepper pins (A-/A+/B-/B+)
One note is that I am not sure whether the pinInfo coords match the position in the drawing or how to make sure they do.
Another note is that on storybook, I am not sure how to create two group of controls, one for each stepper hand and be able to use these controls when initializing a class representing each of the hands