|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Infrared button rules | duhoverdrive | Programming | 1 | 26-01-2008 14:26 |
| C coding | ExarKun666 | General Forum | 12 | 21-12-2007 14:13 |
| Photoswitch coding | magical hands | Programming | 0 | 17-01-2006 21:20 |
| coding a potentiometer | incognito_NICK | Programming | 5 | 14-02-2005 15:56 |
| Coding conventions | Anthony Kesich | Programming | 20 | 08-01-2004 10:50 |