Merged
Conversation
Moved constants, drive, turn, and common auto methods from AutoMain into new utility classes (AutoConstants, AutoDrive, AutoTurn, CommonAutoMethods) for better code organization and reuse. Updated MotorConstructor to include IMU and VoltageSensor initialization. Simplified AutoMain by removing duplicated logic and delegating hardware and movement control to utility classes.
Moved drive, turn, and common autonomous methods from AutoMain into separate utility classes (AutoDrive, AutoTurn, CommonAutoMethods) for better modularity and maintainability. Updated AutoConstants to use public constants. Adjusted method access and signatures to support new structure and improved IMU setup and encoder reset handling.
Moved SelectDelayTime from AutoMain to CommonAutoMethods for reuse and cleaner structure. Updated constructors in AutoDrive and AutoTurn to pass LinearOpMode. Added TeleOpCommonMethods class for button toggling and integrated it into TeleOpMain for improved launch control logic.
Moved constants, drive, turn, and common auto methods from AutoMain into new utility classes (AutoConstants, AutoDrive, AutoTurn, CommonAutoMethods) for better code organization and reuse. Updated MotorConstructor to include IMU and VoltageSensor initialization. Simplified AutoMain by removing duplicated logic and delegating hardware and movement control to utility classes.
Moved drive, turn, and common autonomous methods from AutoMain into separate utility classes (AutoDrive, AutoTurn, CommonAutoMethods) for better modularity and maintainability. Updated AutoConstants to use public constants. Adjusted method access and signatures to support new structure and improved IMU setup and encoder reset handling.
Moved SelectDelayTime from AutoMain to CommonAutoMethods for reuse and cleaner structure. Updated constructors in AutoDrive and AutoTurn to pass LinearOpMode. Added TeleOpCommonMethods class for button toggling and integrated it into TeleOpMain for improved launch control logic.
…ics/13233DECODE into addUnitTestsToAutoMain
Moved SelectAutoMode logic from AutoMain to CommonAutoMethods for better code reuse. Updated AutoMain to use the new method. Enhanced MockMotorUtil with additional hardware mocks and setup. Added initial TeleOpCommonMethodsTest for unit testing TeleOp methods.
Deleted TeleOpCommonMethods and its test, refactored TeleOpMain to remove its usage, and updated launch control logic to use gamepad input directly. Also made rotate and setDrivePower methods public, and updated MotorConstructor to expose VoltSens and imu, as well as set launcher motors to use encoders.
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
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.
No description provided.