View Single Post
  #9   Spotlight this post!  
Unread 14-09-2014, 12:15
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,308
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: ftc mecanum code

Here are the screen shots of our code.
There are 3 pictures.

The way it works by adding and subtracting the values of the joysticks depending of the wheel. The middle attempts to normalize the value of the joysticks because if you don't it will end up driving really fast all the time.

**I have not included our code from last year directly because we had a really weird problem with our code that we couldn't figure out. When ever the joystick value got higher than aprox. 100 the motor outputs were reversed. I rewrote this code several times and could never get it to work.
Attached Thumbnails
Click image for larger version

Name:	TeleOp.jpg
Views:	61
Size:	184.8 KB
ID:	17310  Click image for larger version

Name:	NormTrue.png
Views:	39
Size:	131.5 KB
ID:	17311  Click image for larger version

Name:	NormFalse.png
Views:	31
Size:	134.6 KB
ID:	17312  
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
Reply With Quote