You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Coolearthsky this is your code from a few weeks ago, which looks like it's supposed to be some sort of deadband? could you explain what you're doing here?
@Coolearthsky this is your code from a few weeks ago, which looks like it's supposed to be some sort of deadband? could you explain what you're doing here?
all24/comp/swerve100/src/main/java/org/team100/frc2024/motion/drivetrain/manual/ManualWithShooterLock.java
Line 146 in 04b13e6
State100 goal = new State100(bearing.getRadians(), targetMotion);
if (Math.abs(goal.x()-prevGoal.x()) < 0.05 || Math.abs(2*Math.PI - goal.x()-prevGoal.x()) < 0.05) {
goal = new State100(prevGoal.x(), goal.v(),goal.a());
}
if (Math.abs(goal.v()-prevGoal.v()) < 0.05) {
goal = new State100(goal.x(), 0,goal.a());
}
if (Math.abs(goal.a()) < 0.05) {
goal = new State100(goal.x(), goal.v(),0);
}
The text was updated successfully, but these errors were encountered: