View Single Post
  #6   Spotlight this post!  
Unread 03-02-2014, 15:27
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
FTC, I have returned.
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,564
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: Two joystick tank drive vs one stick arcade drive

Quote:
Originally Posted by apalrd View Post
We have used a mixed style algorithm for the past few years. We currently use the 'CulverDrive' algorithm, derived from the 'Cheesy Drive' algorithm published by the Cheesy Poofs. In both cases, there is a 'throttle' and 'wheel' (steering) input which is mixed in software to a left and right command. The Arcade algorithm does something similar, in a very mathematically simplified way.

We then split the mixed algorithm between the two sticks, so the X axis is on one stick and the Y axis is on the other stick. This separates the driving from the steering, allowing the driver to more finely control both (specifically, it prevents quick changes in throttle control from bumping the steering control, and vice-versa). The driver can maintain a steering command and modify the throttle command easily as they are detached.

You can do the same with the Arcade algorithm by mapping the X input to the X axis of one stick, and the Y input to the Y axis of the other stick.

We use Logitech F310 gamepads, as we were not impressed by the quality of the xbox gamepads (specifically, they do not return to the same center very well compared to the Logitech gamepads). Our drivers also prefer the circular stick boundaries of the F310 vs the octagonal boundary of the xbox, and we coded in assumptions of a circular boundary for the CulverDrive.

We found, after much testing, that the two-stick tank drive resulted in 'trinary' (3-position, almost binary) motions. The driver would usually only put each stick in 3 positions: +1, 0, -1. Both sticks would be full forward, and to turn, the inner wheel stick would go to either 0 (driver removes thumb from stick) or -1 (driver does a full reverse spin turn). We tried to fix this on our 2011 robot using an 'arc control' code that would adjust the inner wheel transfer function (so a 0 on the inner wheel would become a +0.4 or so), but this was an intermediate measure as the driver was trained on two-stick tank and we could not switch to a mixed control setup until the next season.

With the separated throttle/wheel, the driver still drives with a trinary throttle, but can now finely control the wheel input independently to gracefully turn. The algorithm also tries to maintain a constant radius turn for a given wheel input independent of throttle (we can adjust this as one of the calibratable 'feel' parameters)


IMHO, if the driver is not already trained, you should not let the driver pick. We initially did this and most drivers picked the tank drive because they were familiar with the robot mechanics and it made sense to them (there was no 'magic software'). However, with practice, all of our drivers who have tried it have adopted our 'CulverDrive', and the Halo/Cheesy style drives as well. We believe it's WAY easier for a driver to control a high speed FRC robot well with a mixed control, YMMV.
That is really interesting. I'm surprised I haven't looked this up by now. With my old team (1102) I used tank drive because it was more simple to code and also everyone seemed to prefer it because of it's native logic.

Working with my new team and new mentors it was suggested to me to work on coding something very similar to cheesy-drive. I personally love it. The control is much better than anything I drove as a student before. I'm going to have to look up the cheesy drive to see how different it is from the code I've written.
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker