View Single Post
  #7   Spotlight this post!  
Unread 20-08-2012, 21:46
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Tips for first-year programmers

Quote:
Originally Posted by Ekcrbe View Post
I don't have any experience running a drivetrain off a gamepad, or what is applicable to use, but I imagine the offset joysticks from the XBox 360 could make driving a little funky. Logitech sells the F310, which I think would work well for an FRC Driver Station if you love the 360 layout, with the aligned sticks.

P.S. We used a Dual Action gamepad for our manipulator control this year, and I really like it, but it doesn't have analog triggers.
I would suggest not using tank drive, but rather using a split-thumbstick arcade mode (with one thumbstick being forward movement and a separate one for turning) or one thumbstick for turning and the triggers for throttle. Tank drive is difficult to drive straight in the best of circumstances, but the implicit inaccuracy of the thumbsticks compared to joysticks makes it even more difficult.

Also keep in mind that the Xbox controller has a large deadzone in the middle of the stick that needs to be accounted for, otherwise it won't center properly. The logitech controllers and joysticks don't seem to have that issue so much.

We haven't tried an Xbox controller yet, due to money issues and lack of a workable testbed robot, but I have the code complete for one. Keep in mind I haven't tested it yet.
https://github.com/FRCTeam3737/2012-...aptors/OI.java

Last edited by F22Rapture : 20-08-2012 at 21:55.