Skip to content

Supacycle#171

Closed
Jetblackdragon wants to merge 23 commits intomainfrom
supacycle
Closed

Supacycle#171
Jetblackdragon wants to merge 23 commits intomainfrom
supacycle

Conversation

@Jetblackdragon
Copy link
Contributor

supercycling

…have a coral and will wait until switching to coral mode to do a quickhand off
@Jetblackdragon
Copy link
Contributor Author

needs testing

getAlgaeIntakeCommand(),
Commands.deferredProxy(
() -> {
if (sensors.armSensor != null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we doing the right thing in these cases where .armSensor == null? I get that we don't want to dereference sensors.armSensor, but is the else {} case the correct result or should it fall out of the behaviors with an error.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question broadly across this PR in multiple places.

ScoringMode currentMode = scoringMode.get();
if (currentMode == ScoringMode.ALGAE) {
SoloScoringMode currentMode = scoringMode.get();
if (currentMode == SoloScoringMode.ALGAE_IN_CLAW) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to a switch() for readability.

if (groundSpinny == null || groundArm == null) {
return Commands.none().withName("ground intake manual disabled");
} else {
BooleanSupplier clawFull = armSensor != null ? armSensor.inClaw() : () -> false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to log if armSensor is null to ease debugging at an event?

@Jetblackdragon
Copy link
Contributor Author

After further review I don’t think this is gonna work but will be tested on 09/29.

@Jetblackdragon Jetblackdragon deleted the supacycle branch October 1, 2025 21:00
@iamawesomecat
Copy link
Contributor

supacycle has fallen 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants