Skip to content

Commit 4e3ead2

Browse files
authored
Merge pull request #209 from strykeforce/rkalnins/unbag
Rkalnins/unbag
2 parents 3dd5c48 + 804892f commit 4e3ead2

File tree

8 files changed

+148
-968
lines changed

8 files changed

+148
-968
lines changed

networktables.ini

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

networktables-stjoe1024.ini renamed to nt/networktables-airtight-2.ini

Lines changed: 132 additions & 273 deletions
Large diffs are not rendered by default.

networktables.ini.bak renamed to nt/networktables.ini.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,4 +809,4 @@ boolean "/SmartDashboard/Vacuum/cool/.controllable"=true
809809
boolean "/SmartDashboard/Vacuum/cool/.isParented"=false
810810
string "/SmartDashboard/Vacuum/cool/.name"="VacuumCooldownCommandGroup"
811811
string "/SmartDashboard/Vacuum/cool/.type"="Command"
812-
boolean "/SmartDashboard/Vacuum/cool/running"=false
812+
boolean "/SmartDashboard/Vacuum/cool/running"=false

src/main/java/frc/team2767/deepspace/command/climb/ClimbJogCommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
public class ClimbJogCommand extends InstantCommand {
88

99
private static final ClimbSubsystem CLIMB = Robot.CLIMB;
10-
private double velocity;
10+
private double percent;
1111

12-
public ClimbJogCommand(double velocity) {
13-
this.velocity = velocity;
12+
public ClimbJogCommand(double percent) {
13+
this.percent = percent;
1414
}
1515

1616
@Override
1717
protected void initialize() {
18-
CLIMB.setVelocity(velocity);
18+
CLIMB.openLoop(percent);
1919
}
2020
}

src/main/java/frc/team2767/deepspace/control/DriverControls.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class DriverControls {
4747

4848
// Climb Commands
4949
new JoystickButton(joystick, Button.UP.id)
50-
.whenPressed(new ClimbJogCommand(ClimbSubsystem.kJogUpVelocity));
50+
.whenPressed(new ClimbJogCommand(ClimbSubsystem.kJogUpPercent));
5151
new JoystickButton(joystick, Button.UP.id).whenReleased(new StopClimbCommand());
5252
new JoystickButton(joystick, Button.DOWN.id)
53-
.whenPressed(new ClimbJogCommand(ClimbSubsystem.kJogDownVelocity));
53+
.whenPressed(new ClimbJogCommand(ClimbSubsystem.kJogDownPercent));
5454
new JoystickButton(joystick, Button.DOWN.id).whenReleased(new StopClimbCommand());
5555

5656
// biscuit

src/main/java/frc/team2767/deepspace/subsystem/ClimbSubsystem.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public class ClimbSubsystem extends Subsystem implements Item {
3131
private static final String PREFS = "ClimbSubsystem/Settings/";
3232
private static final double BACKUP = 2767;
3333
public static double kSealVelocity;
34-
public static double kJogUpVelocity = -0.20;
35-
public static double kJogDownVelocity = 0.20;
34+
public static double kJogUpPercent = -0.20;
35+
public static double kJogDownPercent = 0.20;
3636
public static double kDownOpenLoopOutput = 1.0;
3737
public static double kUpOpenLoopOutput = -1.0;
3838
public static double kDownClimbOutput = 0.75;
@@ -65,11 +65,11 @@ public ClimbSubsystem() {
6565
}
6666

6767
private void climbPrefs() {
68-
kHabHover = (int) getPrefs("low_position", 180);
69-
kLowRelease = (int) getPrefs("medium_position", 675);
70-
kHighRelease = (int) getPrefs("high_position", 175);
71-
kClimb = (int) getPrefs("climb_position", 870);
72-
kTooLowIn = (int) getPrefs("too_low_position", 280);
68+
kHabHover = (int) getPrefs("low_position", 195);
69+
kLowRelease = (int) getPrefs("medium_position", 679);
70+
kHighRelease = (int) getPrefs("high_position", 189);
71+
kClimb = (int) getPrefs("climb_position", 884);
72+
kTooLowIn = (int) getPrefs("too_low_position", 240);
7373
kSealVelocity = getPrefs("seal_velocity", 50);
7474

7575
kLeftKickstandHold = getPrefs("L_kickstand_hold", 0.4);

src/main/java/frc/team2767/deepspace/subsystem/VacuumSubsystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private void vacuumPreferences() {
9090
kHatchPressureInHg = getPreference("hatch_pressure_inHg", 16);
9191
kClimbPressureInHg = getPreference("climb_pressure_inHg", 24.4);
9292
kGoodEnoughGamePiece = (int) getPreference("gamepiece_good_enough_inTicks", 80);
93-
kGoodEnoughClimb = (int) getPreference("climb_good_enough_inTicks", 200);
93+
kGoodEnoughClimb = (int) getPreference("climb_good_enough_inTicks", 400);
9494
}
9595

9696
@SuppressWarnings("Duplicates")

src/main/java/frc/team2767/deepspace/subsystem/safety/SafetySubsystem.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -212,29 +212,17 @@ public String toString() {
212212

213213
return "current="
214214
+ "\n\t"
215-
+ elevatorCurrent
216-
+ "\t"
217215
+ elevatorSubsystem.getTicks()
218216
+ "\n\t"
219-
+ intakeCurrent
220-
+ "\t"
221217
+ intakeSubsystem.getTicks()
222218
+ "\n\t"
223-
+ biscuitCurrent
224-
+ "\t"
225219
+ biscuitSubsystem.getTicks()
226220
+ "\nlimits="
227221
+ "\n\t"
228222
+ elevatorLimit
229-
+ "\t"
230-
+ elevatorLimit.toString()
231223
+ "\n\t"
232224
+ intakeLimit
233-
+ "\t"
234-
+ intakeLimit.toString()
235225
+ "\n\t"
236-
+ biscuitLimit
237-
+ "\t"
238-
+ biscuitLimit.toString();
226+
+ biscuitLimit;
239227
}
240228
}

0 commit comments

Comments
 (0)