View Single Post
  #11   Spotlight this post!  
Unread 16-12-2012, 12:17
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: Programming an Arcade Drive

Quote:
Originally Posted by inkspell4 View Post
Could you please further explain the function and purpose of the skim method. Im relatively new to learning how to program an arcade drive
The joystick value is a decimal from 0 to 1, and the robot drive method cuts everything off at one. That means you lose some sensitivity to turning at higher speeds because .75 throttle + .45 turn is going to result in 1.2, which gets cut back down to 1.0.

Skim takes whatever was left on the end (in this case .2), multiplies it by another value, (say .5), and then subtracts it from the other side of the drivetrain.

So instead of .75 throttle and .45 turn giving you full throttle on one side and .3 on the other, it gives you full throttle on one side and .2 on the other. So it's more accurate to the driver's input.

The trick is finding an algorithm that has a comfortable response curve.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote