-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
base: master
Are you sure you want to change the base?
Conversation
Committed to wrong directory.
simulator/api/spike/hub.py
Outdated
class PortRef(): | ||
pass | ||
|
||
|
||
# dictionary of widgets to their name and class | ||
WIDGET_LOOKUP = {None: ['motor', None], | ||
"MotorLargeWidget": ['motor', Motor()], | ||
"MotorSmallWidget": ['motor', Motor()], | ||
} |
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.
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.
Refactored.
Refactored the code as you have suggested. |
Refactor
FEA - Added run_for_degrees.
No longer scatter dead Accessory windows on clicking on another port.
Looks cool! :D Exited to see what comes next! |
No description provided.