|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: How do I program this sensor?
switch(count)
{ case 1: //all your if count == 1 here break;// never ever ever forget to put this . .ever case 2: //all your if count == 2 here break; //EVER case 3: . . . . . case 8: //blah break; } also for bidirectional I would have something like this before incrementing the count if(pwm13 >= 127) count++; else count--; also when you stop the motor and "remap it" to the joy . .you wont see a stop. it will set pwm13 to 127 then set it to what ever the joy is at when it stopped in the next line. so youll have to figure a way to pause it for a sec(I would suggest using 2 digital buttons one for step up a notch and one for step down . .and some way of overriding) |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vex line follower sensor kit program | jbill30 | Programming | 5 | 12-05-2006 14:43 |
| What's happening to this program??? | Weightmn | General Forum | 22 | 04-04-2005 15:40 |
| TI Pressure Sensor this year? | kmcclary | Pneumatics | 1 | 20-01-2005 20:53 |
| This board is quiet-- so how bout this election?!?!? | archiver | 2000 | 19 | 24-06-2002 00:23 |
| How do you connect optical sensor? | archiver | 2001 | 1 | 23-06-2002 23:05 |