|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
keeping orientation with gyro
I am using Kevin Watson's sensor code, And I want to keep the robot in a constant orientation (We have mecannums).
My current method tends to over correct while strafing, and starts to oscilate. Has anybody done this in the past? Tomorrow I am going to do some testing to get some values for an equation that will take into account rotational velocity and determine a coast down time so that the robot doesn't overshoot so much. Currently I find a turn value with turn = .14111*tempgyro+127; and then put turn through my limit function. |
|
#2
|
||||
|
||||
|
Re: keeping orientation with gyro
The limit function should be a closed-loop feedback function, it sounds like. And if it's oscillating, it sounds like you're using just Integrated control (from the PID term you keep hearing). Try a good whitepaper on that subject...
|
|
#3
|
|||
|
|||
|
Re: keeping orientation with gyro
I got it, and it is beautiful. This was a good day.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help With Gyro | Bronson | Electrical | 3 | 10-01-2008 21:09 |
| Keeping a certain heading using a gyro | DanDon | Programming | 12 | 08-03-2006 14:27 |
| Problem with gyro... | capenga | Programming | 21 | 16-02-2006 19:25 |
| Anyone else having trouble keeping up with work? | D. Gregory | General Forum | 36 | 28-03-2004 16:55 |