View Single Post
  #9   Spotlight this post!  
Unread 15-02-2006, 18:37
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Control Problems

Quote:
Originally Posted by Inverted
Code:
int my_y;

pwm02 = my_y;
if (p3_sw_trig==1){
 my_y = p2_y;
}
else {
 my_y = 127;
}
Chances are it's completely wrong, but...
That is the right idea. Just change the red thing from comparison to assignment.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.