forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 21
Climb #6
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
Open
ClaireO-Brien
wants to merge
364
commits into
FTC-23511:master
Choose a base branch
from
Aragon-Robotics-Team:climb
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Climb #6
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spindexer pid
Enhanced the TeleOpFieldCent opmode to calculate shooter vectors with robot velocity, acceleration, and latency compensation for more accurate shots. Added alliance selection, goal pose constants, and updated PID coefficients for heading control. ShooterSubsystem now clarifies distance measurement reference.
Updated shooter vector math in TeleOpFieldCent to account for the shooter's launch angle, ensuring correct horizontal speed and heading compensation. Refactored RobotConstants to remove unused constants and add SHOOTER_ANGLE for improved clarity and maintainability.
Renamed TeleOpFieldCent.java to TeleOp.java and updated the @TELEOP annotation. Added shooter linear speed telemetry in TeleOp and clarified a comment in ShooterSubsystem regarding hardware encoder usage.
Introduced methods to classify colors as green, purple, or white for both intake and back sensors using HSV ranges. Refactored rgbToHsv to accept NormalizedRGBA and moved colorInRange to support new logic.
Replaced ShootBallSequenceCommandSequence with ShootSortedBallsCommandSequence for improved ball sorting and shooting logic. Updated all autonomous modes to use the new command. Removed unused shooter hood and target speed adjustment code from TeleOp and ShooterSubsystem, simplifying operator controls. Added Red18SortOverflowAuto autonomous mode. Deleted TeleopDrivetrainPIDTuningOp and related tuning code.
Major refactor of TeleOp and autonomous opmodes for improved readability and maintainability. TeleOp now uses clearer state management, modularizes system initialization, and enhances telemetry with detailed color sensor and spindexer data. Spindexer logic is improved for ball handling, and redundant or legacy code is removed. Red12AutoGate is deleted and Red12Auto is archived. Red18Auto and Red18SortOverflowAuto gain improved telemetry, color sensor handling, and subsystem registration. ShootSortedBallsCommandSequence is implemented with logic for optimal ball shooting order.
Introduces two CRServoEx side wheels to the IntakeSubsystem and updates the set() method to control their power based on the intake state. This enhances the intake mechanism by allowing coordinated control of additional side wheels.
Updated right trigger handling to only disable manual control instead of toggling slow mode. Moved shooter.setTargetLinearSpeed(50) into manual control block in handleTeleopDrive for consistent shooter speed during manual operation. Removed duplicate trigger logic and cleaned up comments.
Refactored ColorSensorTuning to improve sensor data handling and telemetry output, including clearer HSV formatting and separation of intake and back sensors. Added IntakeTestOpmode for manual testing of the intake subsystem using gamepad controls.
Blue6FarAuto, Blue6FarWaitForHpAuto, and Red6FarAuto classes have been fully commented out in the lm2archive directory. This disables these autonomous routines from compilation and use, likely for codebase cleanup or to prevent accidental deployment.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before issuing a pull request, please see the contributing page.