Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic auto with object detection #194

Merged
merged 44 commits into from
Feb 26, 2024
Merged

Dynamic auto with object detection #194

merged 44 commits into from
Feb 26, 2024

Conversation

Oliver-Cushman
Copy link
Contributor

Uses limelight object detection logic to go to notes it sees and pathplanner pathfinding to return to a shooting pose. Extra review would be appreciated in Limelight.java as I am not the most familiar with our vision system.

@Oliver-Cushman Oliver-Cushman self-assigned this Feb 25, 2024
@Oliver-Cushman Oliver-Cushman added enhancement New feature or request autonomous Something that needs to get done for the Autonomous period of the match labels Feb 25, 2024
@Oliver-Cushman Oliver-Cushman added the command A command on the robot that controls a subsystem label Feb 25, 2024
@Oliver-Cushman Oliver-Cushman added this to the Autonomous milestone Feb 25, 2024
@Oliver-Cushman Oliver-Cushman requested review from Jacob1010-h and GalexY727 and removed request for GalexY727 and Jacob1010-h February 25, 2024 04:26
Copy link
Member

@Jacob1010-h Jacob1010-h left a comment

Choose a reason for hiding this comment

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

some things that look wrong, ill check the logic and stuff of the actual command closer tomorrow.

Copy link
Member

@GalexY727 GalexY727 left a comment

Choose a reason for hiding this comment

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

Minor formatting things, but it is okay if this goes to main 😃

src/main/java/frc/robot/commands/drive/ChasePose.java Outdated Show resolved Hide resolved
Comment on lines +383 to +385
public Command getChaseCommand() {
return new ChasePose(this);
}
Copy link
Member

Choose a reason for hiding this comment

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

It might be fine to just have one instance of this command and instead reschedule the command. This would prevent constructor logic from re-running so that logic might need to be moved into ChasePose::initialize if it is required to run upon making a new command

src/main/java/frc/robot/util/constants/Constants.java Outdated Show resolved Hide resolved
@GalexY727
Copy link
Member

GalexY727 commented Feb 26, 2024

@Oliver-Cushman Feel free to be the one who merges this pull request when you are comfortable.
Oh! Make a boolean inside of autoConstants which says if we want to use object detection or haspiece logic

@Oliver-Cushman Oliver-Cushman merged commit 3fbf1bb into main Feb 26, 2024
1 check passed
@Oliver-Cushman Oliver-Cushman deleted the object-detection branch February 26, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autonomous Something that needs to get done for the Autonomous period of the match command A command on the robot that controls a subsystem enhancement New feature or request logic A logic problem or solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants