Skip to content

Commit

Permalink
Final Commit, for school demos
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLesirge committed Jun 13, 2024
1 parent 5a4055d commit cf3caea
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 4 deletions.
71 changes: 71 additions & 0 deletions shuffleboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,77 @@
"_glyph": 148,
"_showGlyph": false
}
},
"4,0": {
"size": [
1,
1
],
"content": {
"_type": "Command",
"_source0": "network_table:///SmartDashboard/ConditionalCommand",
"_title": "ConditionalCommand",
"_glyph": 148,
"_showGlyph": false
}
},
"8,0": {
"size": [
1,
1
],
"content": {
"_type": "Boolean Box",
"_source0": "network_table:///SmartDashboard/LeftHang Is Down",
"_title": "LeftHang Is Down",
"_glyph": 148,
"_showGlyph": false,
"Colors/Color when true": "#7CFC00FF",
"Colors/Color when false": "#8B0000FF"
}
},
"4,1": {
"size": [
1,
1
],
"content": {
"_type": "Boolean Box",
"_source0": "network_table:///SmartDashboard/RightHang Is Down",
"_title": "RightHang Is Down",
"_glyph": 148,
"_showGlyph": false,
"Colors/Color when true": "#7CFC00FF",
"Colors/Color when false": "#8B0000FF"
}
},
"7,1": {
"size": [
1,
1
],
"content": {
"_type": "Text View",
"_source0": "network_table:///SmartDashboard/Lidar",
"_title": "Lidar",
"_glyph": 148,
"_showGlyph": false
}
},
"8,1": {
"size": [
1,
1
],
"content": {
"_type": "Boolean Box",
"_source0": "network_table:///SmartDashboard/Got to Command",
"_title": "Got to Command",
"_glyph": 148,
"_showGlyph": false,
"Colors/Color when true": "#7CFC00FF",
"Colors/Color when false": "#8B0000FF"
}
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ public RobotContainer() {
SmartDashboard.putNumber("shootOffset", 0);
SmartDashboard.putData(Autos.shootInSpeaker(drivetrain, arm, intakeShooter, this));

// SmartDashboard.putData("ArmUp", new ArmRotateTo(arm,
// ArmConstants.ARM_START_DEGREES));
// SmartDashboard.putData("ZeroYaw", new InstantCommand(drivetrain::zeroYaw));
SmartDashboard.putData("ArmUp", new ArmRotateTo(arm, ArmConstants.ARM_START_DEGREES));
SmartDashboard.putData("ZeroYaw", new InstantCommand(drivetrain::zeroYaw));

SmartDashboard.putString("Bot Name", Constants.currentBot.toString() + " - " + Constants.serialNumber);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static Command shootInSpeaker(SwerveDrivetrain drivetrain, Arm arm, Intak
final double distanceFromTag = 1.55;
final double spacingFromPoint = 0.25;

final double minSpinUpTimeSeconds = 1;
final double minSpinUpTimeSeconds = 2;

// Say whether to use vision
final BooleanSupplier shouldUseVisionSupplier = () -> (vision != null && vision.isEnabled());
Expand Down

0 comments on commit cf3caea

Please sign in to comment.