Made documentation for RobotDriveBase::SetDeadband() clearer (#953)

It now mentions that the deadband is applied to the drive inputs.
This commit is contained in:
Tyler Veness
2018-03-03 01:57:59 -08:00
committed by Peter Johnson
parent 67de595c85
commit 7bb3e4efc3
2 changed files with 10 additions and 6 deletions

View File

@@ -43,9 +43,11 @@ public abstract class RobotDriveBase extends SendableBase implements MotorSafety
}
/**
* Change the default value for deadband scaling. The default value is
* {@value #kDefaultDeadband}. Values smaller then the deadband are set to 0, while values
* larger then the deadband are scaled from 0.0 to 1.0. See {@link #applyDeadband}.
* Sets the deadband applied to the drive inputs (e.g., joystick values).
*
* <p>The default value is {@value #kDefaultDeadband}. Inputs smaller than the deadband are set to
* 0.0 while inputs larger than the deadband are scaled from 0.0 to 1.0. See
* {@link #applyDeadband}.
*
* @param deadband The deadband to set.
*/