mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal,wpilib] Rename Encoder constants to all caps
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user