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

FEA - Added motor function: run_to_position. (Without speed) #33

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

DMB-rgb
Copy link

@DMB-rgb DMB-rgb commented Aug 9, 2022

No description provided.

Comment on lines 152 to 160
class PortRef():
pass


# dictionary of widgets to their name and class
WIDGET_LOOKUP = {None: ['motor', None],
"MotorLargeWidget": ['motor', Motor()],
"MotorSmallWidget": ['motor', Motor()],
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One concern I have is that these don't exist in the hub api. So if someone starts using the file to develop a script for the hub they may see it, use it, and then be frustrated when it doesn't work on the device itself.

I think ideally all complex functionality should live in the simulator.py script which is then imported by this file.

@DMB-rgb
Copy link
Author

DMB-rgb commented Aug 11, 2022

Refactored the code as you have suggested.

@kernelcore32
Copy link

Looks cool! :D

Exited to see what comes next!

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

Successfully merging this pull request may close these issues.

None yet

3 participants