Skip to content

Mech command revamp#27

Open
TejaKoripellaUwU wants to merge 25 commits into
mainfrom
MechCommandRevamp
Open

Mech command revamp#27
TejaKoripellaUwU wants to merge 25 commits into
mainfrom
MechCommandRevamp

Conversation

@TejaKoripellaUwU
Copy link
Copy Markdown
Contributor

Made a couple of changes to the Mech PR issued by @chujiyang. It should work now

}

public boolean isVisionAligned() {
return true; //V2: return LimelightOB.getNoteAlignmentCommand(swerve)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What does this comment mean? Is it relevant?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It just indicates what we will do in the future to populate this method. I can delete it for now since it serves no purpose currently.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just replaced the comment with something more clear


public class ReadyForIntake extends MechState {

public ReadyForIntake(LauncherSubsystem launcherSubsystem,AimingSubsystem aimingSubsystem,IntakeSubsystem intakeSubsystem) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add spaces after all the commas. Same comment in the call to super() below. And same comment for all similar files in this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

public void setLauncherSpeed(LauncherMode mode) {
mLauncherSubsystem.setLauncherMode(mode);
}
@Override
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add blank line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@geeknoid
Copy link
Copy Markdown
Contributor

Should we merge #27 first, and then apply this PR as a delta?

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@TejaKoripellaUwU
Copy link
Copy Markdown
Contributor Author

Should we merge #27 first, and then apply this PR as a delta?

Sure, I don't mind since I branched from the Mech PR anyways so the rebase will be simple

@Override
public void handoffPosition(){
mAimingSubsystem.setDesiredSetpoint(AimState.HANDOFF);
mLauncherSubsystem.setLauncherMode(LauncherMode.OFF);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is the launcher turned off while handoff, can't it keep charging?


public void trapPosition(){}

public void resetEncoders() {}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is resetEncoders() being used? (I don't think it is)

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.

3 participants