View Single Post
  #5   Spotlight this post!  
Unread 24-01-2004, 18:37
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
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.