Method | Description | |
---|---|---|
Drive ( double speed, double turn, bool isQuickTurn, bool forceHigh, bool forceLow, bool autoShift ) : void |
Does all calculations and subroutines for driving the robot split-arcade style.
|
|
DriveHelper ( |
||
handleDeadband ( double val, double deadband ) : double |
Handles the deadband in the controllers. For Xbox controllers, the deadband on the joysticks is about 0.2
|
public Drive ( double speed, double turn, bool isQuickTurn, bool forceHigh, bool forceLow, bool autoShift ) : void | ||
speed | double | Linear Control |
turn | double | Rotational Control |
isQuickTurn | bool | Allows less smooth, but faster turning. Will likely be turned on in low gear. |
forceHigh | bool | Force High Gear |
forceLow | bool | Force Low Gear |
autoShift | bool | Allows automatic shifting |
return | void |
public DriveHelper ( |
||
drive_ | ||
return | System |
public handleDeadband ( double val, double deadband ) : double | ||
val | double | Input Value |
deadband | double | deadband |
return | double |