|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Robot driving off.
Bluedog24,
You can print out the values of your joystick - perhaps they aren't zero as you expect. Robby, It's a good idea not run your control loop flat out - you only get new joystick values every 50ms, so delaying 5ms isn't going to hurt anything. This will allow camera code, dashboard code, etc to get a chance to run. In fact, there's a new method DriverStation.waitForData(long ms) that would be handy to use. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|