|
Re: How to code Macanum ddrive
The Attack 3 joystick is not sufficient for extremely simple, basic wire-up programming and control of holonomic drive. If you want to use it, you'll have to do a little more programming to work with what you've got. But that's where you have options based on how advanced you want to be or what you think is easiest to drive or program.
I think Ether and buildmaster5000 were actually talking about two different drive techniques. But they're both good basic ideas. Let's see if I can describe them:
"Strafing-based holo drive" (what I was describing with buttons and buildmaster5000 with a joystick): one joystick controls strafing (wire up X and Y from joystick to X and Y on holo drive VI), while buttons or another joystick axis control direction/rotation (wire something else up to the Rotation terminal). This means that to turn around a corner you drive straight with the first joystick, but at the same time you need to rotate with your buttons/other joystick so that your direction changes too.
"Tank-based holo drive" (what Ether was describing): robot is driven normally like a tank: two joysticks control the left and right wheels of the robot. But, when the driver presses a button, the robot switches to strafing only, where one joystick controls strafing. This might be a little trickier and would require a combination of the holo drive VI and the tank drive VI (switching between the two based on if the button was pressed). However, this is nice and easy to drive because you normally just drive with the tank drive technique, which is intuitive. The strafing is like an added bonus.
(Note: you could use arcade drive instead of tank drive, which would require only one joystick. The point is that you're switching between that and holo drive to enable strafing).
Sorry if that was super abstract and hard to describe. But there are many ways to actually drive and control the robot with holonomic drive, just like how you can control a basic drive with arcade or tank drive, take your pick. So yes, the holo drive programming itself is easy since we have a nice holo drive VI, but there's still a bit more you have to do to apply it.
I might post visuals of the programming I described if you want. Right now I have to do something else, though. Hope that helps!
|