Skip to content

Commit 202b998

Browse files
Fix typo on config file key names
- Dominic A
1 parent 719adde commit 202b998

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/frc/robot/subsystems/drive/Drivetrain.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,10 @@ public Drivetrain(ConfigTable table) {
143143
turnPidConfig,
144144
"front-right"
145145
);
146-
147-
148146
}
149147

150148
{
151-
Optional<Double> backLeftAbsEncoderOffset = table.getDouble("backLeftAbsEncoder");
149+
Optional<Double> backLeftAbsEncoderOffset = table.getDouble("backLeftAbsEncoderOffset");
152150

153151
if (backLeftAbsEncoderOffset.isEmpty()) {
154152
System.err.println("Error: drivetrain cannot find toml property backLeftAbsEncoderOffset");
@@ -167,7 +165,7 @@ public Drivetrain(ConfigTable table) {
167165

168166
{
169167

170-
Optional<Double> backRightAbsEncoderOffset = table.getDouble("backRightAbsEncoder");
168+
Optional<Double> backRightAbsEncoderOffset = table.getDouble("backRightAbsEncoderOffset");
171169

172170
if (backRightAbsEncoderOffset.isEmpty()) {
173171
System.err.println("Error: drivetrain cannot find toml property backRightAbsEncoderOffset");

0 commit comments

Comments
 (0)