View Single Post
  #4   Spotlight this post!  
Unread 04-03-2008, 20:02
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
Re: Last Minute Programmer - Need Help!

Sort of. The joystick analogs give values from 0->254 and the pwms also run on a 0->254 scale, with 0 being full reverse and 254 being full forward. Spikes are a bit different. There are two program variables used to control them, a rev and fwd for each spike. You set one to zero and the other to one to give power in a direction and zero to both for neutral. (1 for forward and 0 for reverse makes gives a full forward output, for example)

EDIT: What I am saying is relevant to MPLAB code using IFI or Kevin's codebases. I don't know anything about RobotC or EasyC... and its been a while since I used WPIlib.
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain