diff --git a/wpilibc/wpilibC++Devices/include/PWM.h b/wpilibc/wpilibC++Devices/include/PWM.h index 9464aa7019..1b76a2a588 100644 --- a/wpilibc/wpilibC++Devices/include/PWM.h +++ b/wpilibc/wpilibC++Devices/include/PWM.h @@ -17,7 +17,7 @@ * 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 diff --git a/wpilibc/wpilibC++Devices/src/Gyro.cpp b/wpilibc/wpilibC++Devices/src/Gyro.cpp index 559cff190f..ecdf376719 100644 --- a/wpilibc/wpilibC++Devices/src/Gyro.cpp +++ b/wpilibc/wpilibC++Devices/src/Gyro.cpp @@ -71,9 +71,10 @@ void Gyro::InitGyro() } /** - * Gyro constructor using the channel number. + * Gyro constructor using the Analog Input channel number. * - * @param channel The analog channel the gyro is connected to. 0-3 are on-board, 4-7 are on the MXP. + * @param channel The analog channel the gyro is connected to. Gyros + can only be used on on-board Analog Inputs 0-1. */ Gyro::Gyro(int32_t channel) { @@ -85,7 +86,8 @@ Gyro::Gyro(int32_t channel) /** * Gyro constructor with a precreated AnalogInput object. * Use this constructor when the analog channel needs to be shared. - * This object will not clean up the AnalogInput object when using this constructor + * This object will not clean up the AnalogInput object when using this constructor. + * Gyros can only be used on on-board channels 0-1. * @param channel A pointer to the AnalogInput object that the gyro is connected to. */ Gyro::Gyro(AnalogInput *channel) diff --git a/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/DriverStation.java b/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/DriverStation.java index 2b41fbf632..ae268131b3 100644 --- a/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/DriverStation.java +++ b/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/DriverStation.java @@ -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) { diff --git a/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/Gyro.java b/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/Gyro.java index eade389ad4..ea1e1cc301 100644 --- a/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/Gyro.java +++ b/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/Gyro.java @@ -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; diff --git a/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/PWM.java b/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/PWM.java index aa5aa5e9bb..964b717d43 100644 --- a/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/PWM.java +++ b/wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/PWM.java @@ -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