|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Dead zone for RC control
A very readable way to do it is to make an inline function like this:
Code:
#define STOP 127 #define DEAD_ZONE 15 // or any other number, fool around with this to make it work as you want it to #define IN_DEAD_ZONE(x) (x <= DEAD_ZONE + STOP && x>= STOP - DEAD_ZONE) Code:
if (IN_DEAD_ZONE(p1_y)) p1_y = STOP; Last edited by ida_noeman : 15-02-2006 at 18:23. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Concept of PID explained | ConKbot of Doom | Technical Discussion | 11 | 27-01-2008 00:11 |
| Member of multiple (FRC, FLL, VEX) teams in profile/user control panel? | Elgin Clock | CD Forum Support | 3 | 03-12-2005 20:41 |
| YMTC - Flopper? in the ZONE? | Jack Jones | You Make The Call | 6 | 04-04-2005 12:59 |
| **FIRST EMAIL**/2005 FRC Game Design Communication to FRC Teams | Goobergunch | FIRST E-Mail Blast Archive | 1 | 06-01-2005 09:29 |