Skip to content

Commit 6d21cdb

Browse files
committed
Fixed Errors from deleting
1 parent 78a8407 commit 6d21cdb

File tree

12 files changed

+0
-1361
lines changed

12 files changed

+0
-1361
lines changed

src/main/java/common/core/controllers/ControllerBase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.util.function.DoubleConsumer;
55
import java.util.function.DoubleSupplier;
66
import common.hardware.motorcontroller.NAR_Motor;
7-
import common.utility.shuffleboard.NAR_Shuffleboard;
87
import edu.wpi.first.math.MathUtil;
98
import edu.wpi.first.math.controller.PIDController;
109
import edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints;

src/main/java/common/core/controllers/TrapController.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.util.function.DoubleSupplier;
44

55
import common.hardware.motorcontroller.NAR_Motor;
6-
import common.utility.narwhaldashboard.NarwhalDashboard;
76
import edu.wpi.first.math.MathUtil;
87
import edu.wpi.first.math.controller.ProfiledPIDController;
98
import edu.wpi.first.math.trajectory.TrapezoidProfile;
@@ -98,7 +97,6 @@ public double calculate(double measurement) {
9897
setpoint.position = goalMinDistance + measurement;
9998
tempSetpoint.position = setpointMinDistance + measurement;
10099
}
101-
if (shouldLog) NarwhalDashboard.getInstance().sendMessage("Position: " + tempSetpoint.position + "Velocity: " + tempSetpoint.velocity);
102100
tempSetpoint = profile.calculate(getPeriod(), tempSetpoint, setpoint);
103101
controller.setSetpoint(tempSetpoint.position);
104102
final double output = super.calculate(measurement);
@@ -128,7 +126,6 @@ public double calculateFF(double pidOutput) {
128126
final double velocityGain = getConfig().getkV() * prevSetpoint.velocity;
129127
final double accelGain = getConfig().getkA() * (tempSetpoint.velocity - prevSetpoint.velocity) / getPeriod();
130128
final double gravityGain = getConfig().getkG() * getConfig().getkG_Function().getAsDouble();
131-
if (shouldLog) NarwhalDashboard.getInstance().sendMessage("Static Gain: " + staticGain + " Velocity Gain: " + velocityGain + " Acceleration Gain: " + accelGain + " Gravity Gain: " + gravityGain);
132129
return staticGain + velocityGain + accelGain + gravityGain;
133130
}
134131

src/main/java/common/core/fsm/FSMSubsystemBase.java

Lines changed: 0 additions & 235 deletions
This file was deleted.

src/main/java/common/core/fsm/Transition.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)