How to declare Motor parameters using block ? #1916
GenghisHan-op
started this conversation in
General
Replies: 2 comments 5 replies
-
Do you need all these parameters or are the defaults OK? Obvious you need Port and in the setup block you define the positive_direction. The doc of the reset_angle argument:
As we "prooved" in #1913 the default reset_angle is Bert |
Beta Was this translation helpful? Give feedback.
2 replies
-
This feature isn't available in blocks. We try to strike a balance between usability and simplicity. People who use an advanced feature like this have usually already made the jump to Python. But if you must, you can do it by opening this program: motor_with_reset.zip |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm moving my code from Python to Block, please tell me how to declare all parameters of the Motor using block ?
ClassMotor(port, positive_direction=Direction.CLOCKWISE, gears=None, reset_angle=True, profile=None)
Thank you
Beta Was this translation helpful? Give feedback.
All reactions