|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Best way to control the mechanum wheels
So it's not hard to do it in c++?
|
|
#2
|
|||
|
|||
|
Re: Best way to control the mechanum wheels
No not at all, the mechanum drive would only take 5 lines MAX. (excluding the header file and PWM regulation)
|
|
#3
|
|||
|
|||
|
Re: Best way to control the mechanum wheels
Wow thanks I can wait to try it out
|
|
#4
|
|||
|
|||
|
Re: Best way to control the mechanum wheels
Actually I lied, more like 8-10 but you get the point. Good luck, if you need any help ask.
|
|
#5
|
||||
|
||||
|
Re: Best way to control the mechanum wheels
The algorithms for the speeds to drive each wheel are in white papers here, i'm sure. For omnidirectional drives, I like to use the setup with one joystick doing direction, plus one more axis doing turning. My team has found that twisting a stick makes it harder to drive. This setup is ideal for a game controller, which is quite trivial to program if you know how to do a normal joystick (see getRawAxis). If you are up to it, making the drive field-centric using a gyroscope makes it much more intuitive to drive.
|
|
#6
|
||||
|
||||
|
Re: Best way to control the mechanum wheels
You get a holonomic drive VI with the Labview libraries. All you have to do is plug your three joystick axes into that VI, and it gives you the output levels for each of the four drive motors.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|