Skip to content

Commit 388fd82

Browse files
authored
Merge pull request #247 from Spikes-2212-Programming-Guild/adi-fix-drivetankwithpid
finalized fields
2 parents b5d52f8 + cfe6d81 commit 388fd82

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com/spikes2212/command/drivetrains/commands/DriveTankWithPID.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,42 +46,42 @@ public class DriveTankWithPID extends Command {
4646
/**
4747
* The PID Controller of the PID loop operating on the left side of the drivetrain.
4848
*/
49-
protected PIDController leftPIDController;
49+
protected final PIDController leftPIDController;
5050

5151
/**
5252
* The PID Controller of the PID loop operating on the right side of the drivetrain.
5353
*/
54-
protected PIDController rightPIDController;
54+
protected final PIDController rightPIDController;
5555

5656
/**
5757
* The setpoint the left side of the drivetrain should reach.
5858
*/
59-
protected Supplier<Double> leftSetpoint;
59+
protected final Supplier<Double> leftSetpoint;
6060

6161
/**
6262
* The setpoint the right side of the drivetrain should reach.
6363
*/
64-
protected Supplier<Double> rightSetpoint;
64+
protected final Supplier<Double> rightSetpoint;
6565

6666
/**
6767
* How far the left side of the drivetrain drove.
6868
*/
69-
protected Supplier<Double> leftSource;
69+
protected final Supplier<Double> leftSource;
7070

7171
/**
7272
* How far the right side of the drivetrain drove.
7373
*/
74-
protected Supplier<Double> rightSource;
74+
protected final Supplier<Double> rightSource;
7575

7676
/**
7777
* The FeedForwards Controller of the FeedForward loop operating on the left side of the drivetrain.
7878
*/
79-
protected FeedForwardController leftFeedForwardController;
79+
protected final FeedForwardController leftFeedForwardController;
8080

8181
/**
8282
* The FeedForwards Controller of the FeedForward loop operating on the right side of the drivetrain.
8383
*/
84-
protected FeedForwardController rightFeedForwardController;
84+
protected final FeedForwardController rightFeedForwardController;
8585

8686
/**
8787
* The last time the left side of the drivetrain was not within its target zone.

0 commit comments

Comments
 (0)