mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Clean up misc documentation
Change-Id: Ib0a4a7a389fb657d78d8b8bce4fcaeed67c3693d
This commit is contained in:
@@ -194,10 +194,9 @@ public class DriverStation implements RobotState.Interface {
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports errors telated to unplugged joysticks
|
||||
* Reports errors related to unplugged joysticks
|
||||
* Throttles the errors so that they don't overwhelm the DS
|
||||
*/
|
||||
|
||||
private void reportJoystickUnpluggedError(String message) {
|
||||
double currentTime = Timer.getFPGATimestamp();
|
||||
if (currentTime > m_nextMessageTime) {
|
||||
|
||||
@@ -85,7 +85,8 @@ public class Gyro extends SensorBase implements PIDSource, LiveWindowSendable {
|
||||
* Gyro constructor using the channel number
|
||||
*
|
||||
* @param channel
|
||||
* The analog channel the gyro is connected to. 0-3 are on-board 4-7 are on the MXP port.
|
||||
* The analog channel the gyro is connected to. Gyros can only
|
||||
be used on on-board channels 0-1.
|
||||
*/
|
||||
public Gyro(int channel) {
|
||||
this(new AnalogInput(channel));
|
||||
@@ -97,7 +98,8 @@ public class Gyro extends SensorBase implements PIDSource, LiveWindowSendable {
|
||||
* constructor when the analog channel needs to be shared.
|
||||
*
|
||||
* @param channel
|
||||
* The AnalogInput object that the gyro is connected to.
|
||||
* The AnalogInput object that the gyro is connected to. Gyros
|
||||
can only be used on on-board channels 0-1.
|
||||
*/
|
||||
public Gyro(AnalogInput channel) {
|
||||
m_analog = channel;
|
||||
|
||||
@@ -29,7 +29,7 @@ import edu.wpi.first.wpilibj.hal.HALUtil;
|
||||
* Changes are immediately sent to the FPGA, and the update occurs at the next
|
||||
* FPGA cycle. There is no delay.
|
||||
*
|
||||
* As of revision 0.1.10 of the FPGA, the FPGA interprets the 0-255 values as follows:
|
||||
* As of revision 0.1.10 of the FPGA, the FPGA interprets the 0-2000 values as follows:
|
||||
* - 2000 = maximum pulse width
|
||||
* - 1999 to 1001 = linear scaling from "full forward" to "center"
|
||||
* - 1000 = center value
|
||||
|
||||
Reference in New Issue
Block a user