|
Re: problems assigning unsigned chars in FRC Code
p1_y is the input from the joystick port 1 y-axis. Changing p1_y isn't necessarily going to change pwm01 (depends on what other code you have).
Rather that setting p1_y and p2_y, try setting pwm01 and pwm02.
[Edit]
By the way, pwm01 is the output sent to pwm 1 when putdata() is called. It's not like last year where, by default, p1_y was the variable that both held the input from the joystick and was the output for pwm 1. This year we have more room for variables so now there is a seperate variable for input from joystick and output to pwm.
Last edited by Jay Lundy : 24-01-2004 at 18:40.
|