|
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
|