OCCRA [more] FRC Kickoff : 13d 16h 53m ...
Just wondering what types of food you have been living off of while working on your robot? Our team has had pizza almost 3-4 times a week or more. Just wondering. SGS DRAGONS - sgsdragons [more]
 CD-Events CD-Media CD-Spy FRC-Spy
The Chief Delphi Forums are sponsored by Innovation First International, Inc.

#1
04-05-2009, 07:45 AM
 kyungjin Software Specialist AKA: Daniel VRC #0646 Team Role: Programmer Join Date: Aug 2008 Rookie Year: 2009 Location: Honolulu, Hawaii Posts: 65

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
04-05-2009, 12:14 PM
 Uberbots Mad Programmer AKA: Billy Sisson FRC #1124 (ÜberBots) Team Role: College Student Join Date: Jan 2006 Rookie Year: 2005 Location: Avon Posts: 739

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
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
#3
04-05-2009, 01:08 PM
 Cadyyan The Button Man FRC #1716 (Redbird Robotics) Team Role: Mentor Join Date: Sep 2008 Rookie Year: 2007 Location: Wisconsin Posts: 11

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
04-06-2009, 11:02 AM
 virtuald Registered User AKA: Dustin Spicuzza FRC #2423 (Kwarqs) Team Role: Mentor Join Date: Dec 2008 Rookie Year: 2003 Location: Massachusetts Posts: 380

Quote:
 Originally Posted by Cadyyan 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
Odd. We've never had this problem.
__________________
--Innovation is just a problem away

2012 & 2013 Boston Regional Innovation in Control Award

NetworkTables for PC in a python module: https://github.com/robotpy/pynetworktables
FRC Software Resources (including 2012 python code): http://www.virtualroadside.com/FRC/
#5
04-06-2009, 11:28 AM
 Alan Anderson Software Architect FRC #0045 (TechnoKats) Team Role: Mentor Join Date: Feb 2004 Rookie Year: 2004 Location: Kokomo, Indiana Posts: 7,190

Quote:
 Originally Posted by Cadyyan 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
That's not a Jaguar issue. It'll happen if you put too much load on the circuit no matter what speed controller you use (or don't use). For example, our propeller gearing is slightly off optimum, and at full power the motors want to draw more than 40 amps. We have to throttle them back to keep from tripping the breakers. Incidentally, they are controlled by Victors.

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 Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     User Announcements FIRST     General Forum         FIRST E-Mail Blast Archive     Rumor Mill     Career     Robot Showcase     Moderated Discussion Technical     Technical Discussion     Robotics Education and Curriculum     Motors     Electrical         CAN     Programming         NI LabVIEW         WindRiver C++         Java         MATLAB & Simulink         Python     intelitek easyC/REC information         easyC v2 for Vex         easyC for FRC         REC/Learnmate         WPILib         easyC PRO     Control System         IFI Control System         FRC Control System         Sensors         USB Chicklet     Pneumatics     Kit & Additional Hardware     CAD         Inventor         SolidWorks         Pro ENGINEER / Creo     IT / Communications         3D Animation and Competition         Website Design/Showcase         Videography and Photography         Computer Graphics     National Instruments LabVIEW and Data Acquisition         LabView and Data Acquisition Competition     Awards         Chairman's Award     Rules/Strategy         Scouting         You Make The Call     Team Organization         Fundraising         Starting New Teams         Finding A Team         College Teams     Championship Event     Regional Competitions     FIRST in Michigan     Mid-Atlantic Robotics     Off-Season Events         Chief Delphi Invitational     Thanks and/or Congrats     FRC Game Design     OCCRA         OCCRA Q&A         OCCRA Programming Other     Unsung FIRST Heroes     Chit-Chat         Games/Trivia             Fantasy FIRST     Car Nack's Corner     College & University Education     Dean Kamen's Inventions     FIRST-related Organizations         Western Region Robotics Forum         Robot Chicks Union (RCU)         Southern California Regional Robotics Forum         FIRST Interactive Rural SupporT         FIRST Scouting Network         The Grand FIRST Team         FloridaFIRST         FIRSTwiki         Ultimate Robot Challenge         Team San Diego         Dream FIRST         The Blue Alliance             Video Archives     FIRST Historians     FIRST-A-Holic's Anonymous Mailbox     FIRST In the News...     FIRST Lego League         Lego Mindstorm Discussion     FIRST Tech Challenge     VEX         VEX Robotics Competition         VEX IQ     Televised Robotics     Math and Science         NASA Discussion ChiefDelphi.com Website     CD Forum Support     Extra Discussion Old Forum Archives     1999     2000     2001

 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 MikeL303 FIRST Tech Challenge 3 10-17-2005 09:26 PM

All times are GMT -5. The time now is 07:06 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.

 -- English (12 hour) -- English (24 hour) Contact Us - Chief Delphi - Rules - Archive - Top