![]() |
Programming Arcade Drive
I wanted to ask the Chief Delphi community here how to implement arcade style driving using code efficiently and naturally. To clarify what I mean, I wanted to know how to program arcade style controls by individually controlling the left and right motors that are connected to the wheels (one motor controls two wheels) using an efficient coding scheme.
I know the WindRiver FRC class comes with its own Arcade Drive scheme but, for educational purpose, I tried dissecting some of the code there and couldn't find out how it works. I was hoping the CD community can help me understand just how the Arcade Drive works (I'm wondering if it's some kind of mathematical equation based on X and Y inputs of the joystick). Thanks a lot for your help guys. I appreciate it. - Daniel |
Re: Programming Arcade Drive
left = y_axis + x_axis
right = y_axis - x_axis thats the simple way to do it, and you also have to limit the output |
Re: Programming Arcade Drive
I don't know if you are using Jaguars but I found that if you do NOT limit your max forward speed and max reverse speed then your jaguars can blow their breakers. To fix this I just used a multiplier of 99% of the max speed. AKA:
MotorOut = Speed * .99 |
Re: Programming Arcade Drive
Quote:
|
Re: Programming Arcade Drive
Quote:
Jaguars do have their own built-in 40-amp limit, and will shut down for several seconds if that limit is exceeded, independent of the circuit breakers. |
| All times are GMT -5. The time now is 10:18 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi