|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
is it right ???
We are a rookie team and don't have any real programmers. But we have this code, would this hybrid code work? This is what we have:
#define NEUTRAL 127 #define STRAIGHTSPEEDLEFT 215 #define STRAIGHTSPEEDRIGHT 200 //left side not as efficient #define TURNSPEEDLEFT 54 #define TURNSPEEDRIGHT 200 #define IRswitch1 rc_dig_in01 #define IRswitch2 rc_dig_in02 #define IRswitch3 rc_dig_in03 #define IRswitch4 rc_dig_in04 if (!IRswitch1) //If the IR has been pressed pwm01-255; pwm03-255; //Do whatever when switch is down } if (!IRswitch2) //If the IR has been pressed pwm01-127; pwm03-127; //Do whatever when switch is down } Or what are we missing?? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .o isnt working right... | Xenosthebest | Programming | 2 | 21-03-2007 00:24 |
| What went right? | Cuog | General Forum | 27 | 15-03-2007 19:15 |
| yeah right. | soezgg | General Forum | 38 | 12-02-2003 10:37 |
| IS THIS RIGHT?!?!? | RebAl | General Forum | 22 | 31-03-2002 00:07 |