|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
Re: Programming Arcade Drive
Odd. We've never had this problem.
|
|
#5
|
|||||
|
|||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Arcade Drive Issue and Pnuematics | chenvoy | NI LabVIEW | 10 | 02-23-2009 08:03 PM |
| Non-Arcade Drive causes problems in Autonomous... | pinballwizard96 | NI LabVIEW | 2 | 02-01-2009 08:45 PM |
| Arcade/Tank Drive Malfunction | piedmont | Programming | 2 | 01-19-2009 05:37 PM |
| Arcade Drive | Anfony | VEX | 4 | 11-08-2006 07:46 PM |
| vex programming arcade drive setting | Michael Leicht | FIRST Tech Challenge | 3 | 10-17-2005 09:26 PM |