-
Notifications
You must be signed in to change notification settings - Fork 145
MoveDifferential: use gyro support for better accuracy (reverted this commit) #705
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
Conversation
dwalton76
commented
Jan 4, 2020
- Resolves MoveDifferential: use gyro support for better accuracy #620
- unify (as much as possible) the turn API for MoveTank and MoveDifferential. MoveTank recently got gryo support so we needed to cleanup the API between it and MoveDifferential.
- removed all trailing whitespaces in various files
WasabiFan
left a comment
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.
Sorry for taking so long to review this!
I like consolidating and making the various Move* classes consistent. My main worry is just making sure that we don't introduce confusion about when and how the gyro is used.
| current_angle = self.angle | ||
| delta = abs(current_angle - self._init_angle) % 360 | ||
|
|
||
| if delta == 0: |
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.
This seems over-complicated. Shouldn't the transformation from gyro angle to appropriate angle always be some_constant_offset - current_angle?
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.
I thought so too, figured it would be relatively simple. I spent a few hours coming up with this function though...maybe I am missing something.
|
Still some more work to go on this, I should be able to get to the other comments this weekend. |
|
I had been waiting to review this until I had more time... I still have some concerns which I'll comment on when I can work through it more thoroughly. |
|
My bad...I had resolved all of the comments so thought we were set. We can revert the commit or I can tackle the new comments via a new PR. |
|
@WasabiFan ack let me revert this and open a new PR. My bad for jumping the gun on the commit. |
This reverts commit 69e7bde.
|
Reverted this commit and opened #718 |