Skip to content

Add unit tests to auto main#38

Merged
melloCoding merged 9 commits intomainfrom
addUnitTestsToAutoMain
Dec 1, 2025
Merged

Add unit tests to auto main#38
melloCoding merged 9 commits intomainfrom
addUnitTestsToAutoMain

Conversation

@melloCoding
Copy link
Member

No description provided.

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.
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.
@melloCoding melloCoding merged commit 0c10d1b into main Dec 1, 2025
1 check passed
@melloCoding melloCoding deleted the addUnitTestsToAutoMain branch December 1, 2025 15:13
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.

1 participant