-
Notifications
You must be signed in to change notification settings - Fork 1
Final code for Chezy #122
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
base: main
Are you sure you want to change the base?
Final code for Chezy #122
Conversation
…scape into chezy-anthony-improved-logs
| private final RobotContainer m_robotContainer; | ||
| private VisionSystem visionRight; | ||
| private VisionSystem visionLeft; | ||
| private AnthonyVision visionRight; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename the class pls
| */ | ||
| public class AnthonyVision extends SubsystemBase { | ||
| // static member of AnthonyVision that contains array of all existing AnthonyVision systems | ||
| private static AnthonyVision[] systemList = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need an array of exisitng vision systems?
| @Override | ||
| public void periodic() { | ||
| // Initialize swerve drive if not already done | ||
| if (swerveDrive == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we initializing in periodic?
| List<PhotonPipelineResult> results = photonCamera.getAllUnreadResults(); | ||
|
|
||
| // Go through all results (if there are any) and update the latest result with the last | ||
| for (var result : results) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to interate if this is effectively grabbing the last value?
No description provided.