Go to Post Nothing worse than an intolerant field :D - JB987 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2013, 09:40
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Coding the drive system? (Arcade?)

Maybe this is a dumb question but.. what EXACTLY is Arcade Drive? I know tank drive is when you use just the vertical axes of two joysticks and blah blah blah. Is Arcade Drive for teams with mechanum wheels?

The way I had imagined our drive system was to use the left stick to move and the right stick to turn (using a controller), but the Arcade Drive vi only has an x and a y plugin so the two ideas dont really line up
__________________
Team 3753 BulahBots
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2013, 09:42
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Coding the drive system? (Arcade?)

Arcade Drive uses one axis for "throttle" (y) and one axis for rotation (x). These axes do not have to come from the same joytick. Nor do they actually have to be the x and y axis of any joystick used.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2013, 09:50
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Coding the drive system? (Arcade?)

Arcade drive is named around how arcade games would operate. A single stick would move you forward, backward, or rotate you clockwise or counterclockwise. Perhaps the easiest way to experience it is to run it in the simulator.

Then to understand how it works. A simple version of it sums the X and Y axis and sends that to side's motors and subtracts the two and sends that to the other side's motors. To understand a few example points, consider just the Y axis with an X of zero. The output to the motors is Y to one side and -Y to the other. Seems like that works to move the robot in a straight line. Now plot out the X axis with Y at zero. We end upsending X to both motors, and since the motors on one side of the robot are flipped, this results in the robot spinning in place at the given speed of X.

Combine the two vectors we've just mapped, and take a corner as an example. Full X and Full Y give all power to one motor and none to the other leading to a rotation about one wheel.

This simple arcade mapping will work and is probably pretty common, but it is also useful to scale the values or map the values first to make it easier to drive straight and in gentle arcs and making less of the XY space about spinning.

The default dashboard shows the motor outputs and joystick inputs, and you may find it useful to connect to a cRIO or simulated robot and pay attention to the plots as you move the joystick around and think about the X, Y, and outputL and outputR values that it generates.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2013, 10:41
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,072
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Coding the drive system? (Arcade?)

Here's our drive system class:

https://github.com/team1306/Badgerbo...TankDrive.java

I know it's titled TankDrive, but there's an arcadeDrive function in there too.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2013, 20:40
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Coding the drive system? (Arcade?)

Arcade drive is normally controlled with one stick, with Y being backwards/forwards, and X being left/right. It's kind of like video games in the arcade, hence arcade drive. Compare it to Pacman.

We use a field oriented (not robot oriented) custom drive system based on the mecanum drive system, using a gyro.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -5. The time now is 04:15.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi