mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[doc] Update Analog Input voltage to 3.3v (NFC) (#8085)
This commit is contained in:
@@ -14,7 +14,7 @@ import edu.wpi.first.util.sendable.SendableRegistry;
|
||||
/**
|
||||
* Analog channel class.
|
||||
*
|
||||
* <p>Each analog channel is read from hardware as a 12-bit number representing 0V to 5V.
|
||||
* <p>Each analog channel is read from hardware as a 12-bit number representing 0V to 3.3V.
|
||||
*
|
||||
* <p>Connected to each analog channel is an averaging and oversampling engine. This engine
|
||||
* accumulates the specified ( by setAverageBits() and setOversampleBits() ) number of samples
|
||||
@@ -52,9 +52,9 @@ public class AnalogInput implements Sendable, AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a sample straight from this channel. The sample is a 12-bit value representing the 0V to 5V
|
||||
* range of the A/D converter. The units are in A/D converter codes. Use GetVoltage() to get the
|
||||
* analog value in calibrated units.
|
||||
* Get a sample straight from this channel. The sample is a 12-bit value representing the 0V to
|
||||
* 3.3V range of the A/D converter. The units are in A/D converter codes. Use GetVoltage() to get
|
||||
* the analog value in calibrated units.
|
||||
*
|
||||
* @return A sample straight from this channel.
|
||||
*/
|
||||
|
||||
@@ -50,7 +50,7 @@ public class AnalogPotentiometer implements Sendable, AutoCloseable {
|
||||
* fraction of the supply voltage, plus the offset.
|
||||
*
|
||||
* @param input The {@link AnalogInput} this potentiometer is plugged into.
|
||||
* @param fullRange The angular value (in desired units) representing the full 0-5V range of the
|
||||
* @param fullRange The angular value (in desired units) representing the full 0-3.3V range of the
|
||||
* input.
|
||||
* @param offset The angular value (in desired units) representing the angular output at 0V.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user