View Single Post
  #7   Spotlight this post!  
Unread 03-02-2007, 02:24
kbregler kbregler is offline
Registered User
FRC #1791
 
Join Date: Feb 2007
Location: Clayton, NJ
Posts: 7
kbregler is an unknown quantity at this point
Re: PWM Problem with Default Code

Guys, thanks for the responses.

It is the controller that first gave us.

If I leave the code in that came on it from the factory the lights for PWM1 work correctly, red and green at neutral, green full forward, red full reverse. One joystice mode useing PWM 13 or 14 and 15 or 16 work correctly as well.

If I compile the code labeled as FrcCode_2007_8722 or last years code, PWM1 operates correctly, but the lights now map to the X axis, all the way left gives me green and all the way right gives me red. I wasnt worried about this, I actually corrected this with code, but when we tried using 1 joystick with PWM 13 and 15 we saw the same issue as the lights, all the way left seemed to be all the way forward and all the way right seemed to be all the way reverse.

I know the higher PWMs are calculated differently, do the light functions and the higher PWM's use a similar function call?

just to reiterate, PWM1 operates correctly, regardless of the lights, and the dashboard is correct. 1 joystick mode even shows incorrectly in the dashboard program.

Thanks again,

Kevin