Skip to content

[Doc] Absolute vs relative angle when using Motor.run_target #1734

@dmusican

Description

@dmusican

Describe the issue
Some students and spent some time recently confused about how Motor.run_target() is supposed to work, where we couldn't make sense of why the motor was moving as it did. I found #895 which was somewhat helpful. After reading that and playing around, I had a sudden revelation that run_target() moves towards relative angle, not absolute angle. This isn't explained anywhere explicitly in the documentation, except implicitly via an example at the bottom. A mention is made of a target angle, but both my students and I had assumed it would move towards absolute angle, and take the shortest path there. I now understand how it actually works and how our assumption was unwarranted, but issue #895 suggests that at least one other person also jumped to the same incorrect conclusion.

Suggested improvement
It would help a lot, I think, if a precise explanation of relative and absolute angles would be provided in the documentation, and it could made clear that run_target() uses relative angle.

The documentation also makes reference to "target" angle, and "accumulated" angle, neither of which are defined either.

Throughout the documentation, careful attention could then be paid as to not use the word "angle" on its own without prefacing it with one of the above (when relevant).

This would involve a number of small changes throughout; if there's interest in seeing a global sort of change like this happen, I can try to update the entire page via a pull request. Alternatively, I can try to just recommend some local text for run_target if that is preferred.

How can I best help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions