Skip to content

Test tag tracking#39

Open
SallyLin0907 wants to merge 18 commits intomainfrom
testTagTracking
Open

Test tag tracking#39
SallyLin0907 wants to merge 18 commits intomainfrom
testTagTracking

Conversation

@SallyLin0907
Copy link
Contributor

No description provided.

Comment on lines +79 to +84
mainController.rightBumper().whileTrue(
Commands.either(
new AutoAlignCmd(shooterTracker, swerveDrive)
.andThen(new ShooterComboCmd(shooterSubsystem, transportSubsystem)),
Commands.none(),
() -> shooterTracker.isHubTag()));

Choose a reason for hiding this comment

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

想提個小想法?就是現在這樣是一定要先到了位置之後才開始那個 ShooterComboCmd,我在想或許可以在前面先偷用一個shootCmd讓它偷跑,用alongWith 串起來,這樣 andThen 後面開始的時候,如果轉速夠了,他就可以直接射出,可以增加效率之類的?我不知道我這樣講可不可行

Commands.either(
shooterSubsystem.shootCmd()
.alongWith(new AutoAlignCmd(shooterTracker, swerveDrive))
.andThen(new ShooterComboCmd(shooterSubsystem, transportSubsystem)),

Choose a reason for hiding this comment

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

這個 andThen 應該要直接接在 AutoAlignCmd 後面?這樣才會對準完就執行

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.

4 participants