Quote:
Originally Posted by yash101
I guess this could work with swerve, but wouldn't be very intuitive. Otherwise, as I have been reading, for regular Ackerman and tank drive, it seems like the best control. How would you code tank drive to use this? Would you have the accelerator controlling the speed of both sides, and the turn wheel controlling the delta in motor speeds?
|
Swerve is the drivetrain, the control type (holonomic/omnidirecitonal/etc) requires 3 inputs: translation in the x/y plane and rotation. You have only two inputs with the pistol grip, so you cannot control all three DoFs of an omnidirectional setup with a pistol grip controller.
Arcade and tank are two control types as well - the drivetrain is a skid-steer. You are mapping two inputs to two outputs: arcade requires a linear input and a rotational input, and tank requires two linear inputs. The output is the same for both (left and right sides of drivetrain). Since you are using a wheel (rotational) and a trigger (linear), you are using "arcade" style control and should code it appropriately.
I'll add myself to the list of pistol grip supporters.