Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
chore: cleanup misc code
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 committed Oct 8, 2024
1 parent 757e837 commit 34de9f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/frcteam3636/frc2024/Dashboard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ object Dashboard {
}
}
limelightsConnected = allConnected
Thread.sleep(2000)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/frcteam3636/frc2024/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ object Robot : LoggedRobot() {
Commands.sequence(
Commands.waitUntil(Shooter.Flywheels.atDesiredVelocity),
Shooter.Feeder.feed().withTimeout(0.4).beforeStarting({
if (Note.state == Note.State.SHOOTER) {
if (Note.state == Note.State.SHOOTER || Note.state == Note.State.HANDOFF) {
Note.state = Note.State.NONE
}
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ class LimelightPoseIOReal(name: String) : AbsolutePoseIO {
private val tl = table.getDoubleTopic("tl").subscribe(0.0)

override fun updateInputs(inputs: AbsolutePoseIO.Inputs) {
val entries = DoubleArray(6)
for (i in entries.indices) {
entries[i] = 0.0
}
val entries = DoubleArray(6) { 0.0 }
entries[0] = Drivetrain.estimatedPose.rotation.degrees
table.getEntry("robot_orientation_set").setDoubleArray(entries)
inputs.measurement = botPose.readQueue().lastOrNull()?.let { update ->
Expand Down

0 comments on commit 34de9f0

Please sign in to comment.