|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#5
|
||||
|
||||
|
Re: [FTC]: Spin Motor Wind Down: Programming
Quote:
if(joystick1.joy_y1 == 0 && motorspeed > 0) { x = x + 1; if(x=1000){x = 0; motorspeed = motorspeed - 1;} motor[shooter] = motorspeed; } if(joystick1.joy_y1 != 0){motor[shooter] = ((joystick1.joy_y1 * 100) / 127);} or if your using a button if(joy1Btn(1) == 0 && motorspeed > 0) { x = x + 1; if(x=1000){x = 0; motorspeed = motorspeed - 1;} motor[shooter] = motorspeed; } if(joy1Btn(1) ==1){motor[shooter] = 100;} that should work much better |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wind River License Server Down? | keericks | C/C++ | 4 | 19-06-2009 20:02 |
| [FTC]: January Run Down and New FTC Pictures | ttldomination | FIRST Tech Challenge | 6 | 04-02-2009 13:18 |
| Driver Station Watch Dog / Motor Won't Spin Issue | RMiller | FRC Control System | 5 | 20-01-2009 09:58 |
| Motor Spin Direction | archiver | 2000 | 6 | 23-06-2002 23:43 |
| How Many RPM does a Fisher-Price Motor Spin At? | archiver | 2000 | 7 | 23-06-2002 23:22 |