Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Add Gatorade robot code to 2024 repo #4

Merged
merged 3 commits into from
Jan 11, 2024
Merged

Add Gatorade robot code to 2024 repo #4

merged 3 commits into from
Jan 11, 2024

Conversation

dejabot
Copy link
Contributor

@dejabot dejabot commented Jan 10, 2024

Description

This PR pulls in our Gatorade mechanism/procedure/OI/auton code into the 2024 repo, under the com.team766.robot.gatorade package. It also pulls in the Odometry code from 2023{-Gatorade} code, although that code currently has a dependency on the Gatorade code (specifically the Gyro mechanism). A future PR will decouple the Odometry code from specific robots to allow us to use it across robots.

The PR looks like a lot of new code due to challenges using a more simple git merge given the existing merge history, where we only merged non-robot specific code from 2023-Gatorade into MaroonFramework (which was copied for 2024). However, it's purely a copy of the code under Gatorade's com.team766.robot plus com.team766.odometry. From there, the only changes we made are:

  • changed the package for robot-specific code from com.team766.robot to com.team766.robot.gatorade.
  • changed the Odometry code to depend on the Gyro mechanism in com.team766.robot.gatorade (temporarily).
  • updated calls to DriverStation.getAlliance() to handle a return value of Optional<Alliance> (vs just anAlliance) - one of the 2024 breaking API changes.

This PR does not update GenericRobotMain to refer to the Gatorade robot code; we will merge this code into main (to allow for future CLs to pull out Swerve and Odometry code for code sharing) and then create a gatorade branch for Gatorade-specific work.

We are doing this PR now to set up for Odometry, Trajectory following, and Vision development off of common code.

How Has This Been Tested?

Not tested yet. Will test on Gatorade after we are able to start using it for 2024 development (updating it to the 2024 RoboRio image, etc). We're looking to set up this code in advance to allow for developing some of the above in the 2024 repo.

contains some light changes for WPILib 2024, around DriverStation.getAlliance().

still needs some work before this can compile, especially around Odometry which contains some robot-specific code.
will clean up in future cls as we iterate on odometry.
@dejabot dejabot requested a review from rcahoon January 10, 2024 02:44
@dejabot dejabot merged commit ab8512b into main Jan 11, 2024
3 checks passed
@dejabot dejabot deleted the just-add-gatorade branch January 11, 2024 02:33
dejabot added a commit that referenced this pull request Jan 15, 2024
* add gatorade code to 2024

contains some light changes for WPILib 2024, around DriverStation.getAlliance().

still needs some work before this can compile, especially around Odometry which contains some robot-specific code.

* temporarily tie odometry to gatorade code.

will clean up in future cls as we iterate on odometry.

* update latest from 2023-Gatorade
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants