Skip to content
Discussion options

You must be logged in to vote

Both run_angle and run_target can be used, each in their own way.

run_angle is usually great for incremental movement, but you'll want to make sure you start from a known position at the very beginning. So you could use run_target to move it to 0 at the start of your program, and then use run_angle after that.

But in your case, you use wait=False, and you might be giving it a new run_angle command when the previous one isn't done yet. That's fine in some applications, but perhaps not in your case. For example, if you are at 45 and you call run_angle to add 90 degrees, you're going to 135.

So perhaps you could add a step in between to achieve what you want. Instead of controlling the motor…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@benjamin-grimsey
Comment options

@benjamin-grimsey
Comment options

Answer selected by benjamin-grimsey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
topic: motors Issues involving motors
2 participants