|
IR button coding rules
im currently working on our hybrid code and im not sure if this is legal
else if(rc_dig_in08 ==1 )
{
pwm05 = 255;
if(rc_dig_in09==1&&rc_dig_in10==1)
{
while(counter1<=15)
{
pwm03 = 200;
}
pwm03 = 127;
while(counter2<=10)
{
pwm01 = 255;
pwm02 = 0;
}
the buttons are supposed to do the same thing every time. All I really need teh button to do is to move the motor connected to pwm05, should i reposition the rest of the code so that its legal or am i fine as it is?
The only thing the button actually needs to do is activate the pwm05 motor, the rest of it triggers from both of our digital pressure switches returning positive.
Thanks in advance
Last edited by theprogrammer : 17-02-2008 at 12:42.
Reason: further explanation
|