[doc] Update Analog Input voltage to 3.3v (NFC) (#8085)

This commit is contained in:
sciencewhiz
2025-07-14 23:47:30 -07:00
committed by GitHub
parent 8d248f61fd
commit efedc5d69a
9 changed files with 18 additions and 18 deletions

View File

@@ -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.
*/

View File

@@ -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.
*/