![]() |
Re: Move Robot a set angle
We came up with an algorithm to get heading based of of 2 wheels (encoders) by using an arc tangent. basically, you integrate the encoder to get your left and righ distance. subract the greater distance from the lesser distance and that is your arc length. then knwong the space between the wheels you can calculate the inverse arc tangent of your arc/wheel spacing. I however cannot confirm the acuracy of this system since it has not been fully tested and will not be fully tested as we no longer need to do this.
|
Re: Move Robot a set angle
Quote:
The problem arises in the fact that one "tick" of the encoder doesn't necessarily equate to the wheel turning any distance, because the wheel will slip. It might give you a good estimate though, and that is definitely a good exercise to have students do, it teaches programming. math, and realistic robot behaviors. |
Re: Move Robot a set angle
Here's the screenshot of our VI:
![]() |
Re: Move Robot a set angle
Quote:
The heading is the angular offset relative to the starting position. https://github.com/jacob9706/HighTek...adReckoner.cpp |
Re: Move Robot a set angle
Quote:
http://www.chiefdelphi.com/forums/sh...21&postcount=8 |
Re: Move Robot a set angle
Quote:
I can personally guarantee that this VI was written as follows: Mentor's brain->messy whiteboard->VI. It's original! |
Re: Move Robot a set angle
Quote:
|
Re: Move Robot a set angle
Quote:
|
Re: Move Robot a set angle
Quote:
Now there is a solution for those who like labview and those who like a typed language! Also it looks like your link was for a gyro. Mine was for an encoder on each drive wheel. (http://www.chiefdelphi.com/forums/sh...21&postcount=8) |
| All times are GMT -5. The time now is 03:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi