|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Encoder-assisted Mecanum drive?
I'm having trouble with the programming for a Mecanum drive that runs straight. I can see how to use encoders to straighten out a tank/arcade drive, and my straightening code works fine forwards and backwards, but moving side-to-side or spinning messes up the code and just makes the robot twitch around. Is there some default code or other method to run an encoded Mecanum drive? Any advice is greatly appreciated!
|
|
#2
|
|||||
|
|||||
|
Re: Encoder-assisted Mecanum drive?
We had two very talented programmers who figured out how to do this using interrupts on an IFI controller three or four years ago. I believe they calculated a desired speed for each wheel, then ran a PID loop to set the wheel speed. Aside from that, I don't actually know what they did, and am afraid to touch the code for that robot lest we send it skittling across the floor out of control. It took a while to tune it.
Have you tried using the gyro to keep it traking straight? Jason |
|
#3
|
||||
|
||||
|
Re: Encoder-assisted Mecanum drive?
Quote:
If it's ill-behaved open-loop, it's possible there's a weak motor or a friction problem with the drivetrain or mecanum rollers. Have you checked all the rollers to make sure they spin freely? ~ |
|
#4
|
|||
|
|||
|
Re: Encoder-assisted Mecanum drive?
this is probably already considered: but just make sure your wheels are in the correct setup. i believe mechanums go in an "X" configuration? not positive though... also, maybe you would like to mention what language you are using. I cant help much, but it may be beneficial to the next guy reading this post
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 862 mecanum drive | Wildcat | Robot Showcase | 0 | 15-02-2010 17:21 |
| crab drive vs. mecanum drive system | superbotman | Technical Discussion | 33 | 06-01-2010 03:09 |
| Mecanum Drive - Help | Smoking_Gun | Programming | 22 | 04-12-2007 20:51 |
| pic: Jester Drive:Mecanum Wheel Drive Train | Ken Delaney 357 | Technical Discussion | 64 | 29-03-2006 22:16 |