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

Commit a9fd436

Browse files
authored
Merge pull request #68 from DriverStationComputer/master
deleted double moveController
2 parents 4d2ffa2 + 79ce046 commit a9fd436

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ public PIDMove(double targ, DrivetrainInterface dt, SmartDashboardInterface sd,
4343
if (Robot.dt != null) {
4444
requires(Robot.dt);
4545
}
46-
moveController = new PIDController(sd.getConst("MovekP", 1), sd.getConst("MovekI", 0), sd.getConst("MovekD", 0),
47-
avg, this);
4846
double kf = 1 / (dt.getCurrentMaxSpeed() * sd.getConst("Default PID Update Time", 0.05));
49-
moveController = new PIDController(sd.getConst("MovekP", 1), sd.getConst("MovekI", 0), sd.getConst("MovekD", 0),
50-
kf, avg, this);
47+
moveController = new PIDController(sd.getConst("MovekP", 0.1), sd.getConst("MovekI", 0),
48+
sd.getConst("MovekD", 0), kf, avg, this);
5149
}
5250

5351
/**

0 commit comments

Comments
 (0)