View Single Post
  #9   Spotlight this post!  
Unread 20-02-2011, 10:11
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Victors not working please help

Well, the first part looks funky and strange to me, as its still a bit out of scope (referring to, we need the code around the lines too), but what really caught my eye was the last few. Your "if" code makes no sense; what it's doing right now is getting the Y value off the joystick and checking whether its centered or not... that, and the Set command requires a capital S. Why not just remove the if statement altogether? It's useless.


All Victor 884's are the same; to my knowledge they haven't changed since they came out.

At the top of your code you have
vicshoulder(6,1);
For one thing, the S isn't capitalized again, and.... you need to initialize the Victor object in the class initilization section above the braces.
I'll put some of my similiar code here later.
__________________
Attending: MN Duluth Regional
Reply With Quote