Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 5af25ef

Browse files
fixed kf in PIDMove
1 parent e6c1538 commit 5af25ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Robot2018/src/org/usfirst/frc/team199/Robot2018/commands

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/PIDMove.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public PIDMove(double target, double[] point, DrivetrainInterface dt, SmartDashb
6767
double kP = r / Robot.rmap.getDrivetrainTimeConstant() / maxSpeed;
6868
double kI = 0;
6969
double kD = r / maxSpeed;
70-
double kF = 1 / (maxSpeed * sd.getConst("Default PID Update Time", 0.05)) / maxSpeed;
70+
double kF = 1 / maxSpeed * sd.getConst("Default PID Update Time", 0.05);
7171

7272
moveController = new PIDController(kP, kI, kD, kF, avg, this);
7373
sd.putData("Move PID", moveController);

0 commit comments

Comments
 (0)