[hal,wpilib] Rename Encoder constants to all caps

This commit is contained in:
Peter Johnson
2026-03-14 11:12:57 -07:00
parent f6fdae3212
commit b68fbb1adc
14 changed files with 46 additions and 45 deletions

View File

@@ -32,7 +32,7 @@ public class Robot extends TimedRobot {
* defaults to k4X. Faster (k4X) encoding gives greater positional precision but more noise in the
* rate.
*/
private final Encoder m_encoder = new Encoder(1, 2, false, CounterBase.EncodingType.k4X);
private final Encoder m_encoder = new Encoder(1, 2, false, CounterBase.EncodingType.X4);
/** Called once at the beginning of the robot program. */
public Robot() {

View File

@@ -19,7 +19,7 @@ public class Robot extends TimedRobot {
// Initializes an encoder on DIO pins 0 and 1
// 2X encoding and non-inverted
Encoder m_encoder2x = new Encoder(0, 1, false, Encoder.EncodingType.k2X);
Encoder m_encoder2x = new Encoder(0, 1, false, Encoder.EncodingType.X2);
/** Called once at the beginning of the robot program. */
public Robot() {