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