Skip to content

Commit 21cecd4

Browse files
Initial commit
1 parent 151324a commit 21cecd4

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

Robot2019/src/main/java/frc/robot/RobotMap.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ private static WPI_TalonSRX createConfiguredTalon(int port) {
120120
catchError(tsrx.configNeutralDeadband(0.001, 10));
121121
tsrx.setNeutralMode(NeutralMode.Brake);
122122

123-
ecDeadband = tsrx.configNeutralDeadband(0.001, 10);
124-
if (!ecDeadband.equals(ErrorCode.OK)) {
125-
throw new RuntimeException(ecDeadband.toString());
126-
}
127-
128123
return tsrx;
129124
}
130125

@@ -140,11 +135,6 @@ private static WPI_VictorSPX createConfiguredVictor(int port) {
140135
catchError(vspx.configNeutralDeadband(0.001, 10));
141136
vspx.setNeutralMode(NeutralMode.Brake);
142137

143-
ecDeadband = vspx.configNeutralDeadband(0.001, 10);
144-
if (!ecDeadband.equals(ErrorCode.OK)) {
145-
throw new RuntimeException(ecDeadband.toString());
146-
}
147-
148138
return vspx;
149139
}
150140

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,22 @@ public void updateDrivetrainParameters() {
198198
blKA = avg;
199199
brKA = avg;
200200
} catch (FileNotFoundException e) {
201+
flKV = 0.06369046755507658;
202+
flKA = 0.0215894793277297;
203+
flVI = 0.8403701236277824;
204+
205+
frKV = 0.0619423013628032;
206+
frKA = 0.04044703465602449;
207+
frVI = 0.810212379284332;
208+
209+
blKV = 0.06388520699977113;
210+
blKA = 0.025492804438184545;
211+
blVI = 0.8071078220643216;
212+
213+
brKV = 0.06140765089854154;
214+
brKA = 0.042046502553651215;
215+
brVI = 0.7929289166816246;
216+
201217
e.printStackTrace();
202218
}
203219
}

0 commit comments

Comments
 (0)