Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into shorthand-units
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/kotlin/com/frcteam3636/frc2025/subsystems/manipulator/Manipulator.kt
  • Loading branch information
doinkythederp committed Feb 19, 2025
2 parents e202411 + 8aa7106 commit d0400fb
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import com.frcteam3636.frc2025.Robot
import com.frcteam3636.frc2025.utils.math.amps
import com.frcteam3636.frc2025.utils.math.inDegreesPerSecond
import com.frcteam3636.frc2025.utils.math.rotations
import com.frcteam3636.frc2025.utils.LimelightHelpers
import com.frcteam3636.frc2025.utils.math.degreesPerSecond
import edu.wpi.first.networktables.NetworkTableInstance
import edu.wpi.first.units.Units.Amps
import edu.wpi.first.units.Units.Rotations
Expand Down Expand Up @@ -44,7 +46,8 @@ object Manipulator : Subsystem {
}, emptySet()),
Commands.runOnce({
coralState = CoralState.HELD
})
blinkLimelight().schedule()
}),
)

init {
Expand All @@ -61,6 +64,14 @@ object Manipulator : Subsystem {
Logger.recordOutput("/Manipulator/Mechanism", mechanism)
}

private fun blinkLimelight(): Command = Commands.runOnce({
LimelightHelpers.setLEDMode_ForceBlink("limelight-rear")
})
.andThen(Commands.waitSeconds(0.3))
.finallyDo { ->
LimelightHelpers.setLEDMode_PipelineControl("limelight-rear")
}


fun idle(): Command = startEnd({
io.setSpeed(-0.02)
Expand Down Expand Up @@ -95,4 +106,4 @@ object Manipulator : Subsystem {
enum class CoralState {
NONE,
HELD
}
}

0 comments on commit d0400fb

Please sign in to comment.