Skip to content

Conversation

@tbowers7
Copy link
Collaborator

@tbowers7 tbowers7 commented Jan 6, 2026

Implements the Autopilot library for drive-to-pose functionality.

	new file:   vendordeps/Autopilot.json
	new file:   src/main/java/frc/robot/AprilTagLayout.java
	modified:   src/main/java/frc/robot/Constants.java
	modified:   src/main/java/frc/robot/RobotContainer.java
	modified:   src/main/java/frc/robot/subsystems/vision/Vision.java
	modified:   src/main/java/frc/robot/subsystems/vision/VisionIOPhotonVision.java
	modified:   src/main/java/frc/robot/subsystems/vision/VisionIOPhotonVisionSim.java
Update the drivebase constants PID values with those used for the
FRC-2486 2025 competition bot.  These were SDS Mk4i w/ Kraken X60's, so
should be somewhat close for most robot projects.
The class constructors and command factory for the Autopilot drive-to-pose
framework is in place.  The next steps will be to define targets and be able
to modify drive-to-pose configurations as needed by specific commands.
Included documentation in code about how to use AutoPilot in the
RobotContainer class.
Send a supplier for the accelerometer rather than the accelerometer object
itself.
The URCL library was causing crashing when trying to test code on the
robot.  Temporarily removing it to allow for on-robot testing of the
rest of the code base.
Previous implementation was double-sampling the PDM because AKit
was reading everything and then this module was reading it again.

At the moment, power logging is not working at all (even from AKit),
but this may be a bug I fixed from 26-beta1 and it will be fine
with the kickoff release.
Still not working.  The Commands.run() bit is just not being executed.

Updated ModuleIOTalonFX.java and ModuleIOTalonFXS.java to match FRC2486's
in-season use of those modules.
Use the Commands.defer() construct.  Also, include the PID-reset and
until parts of the AutoPilot command.
@tbowers7 tbowers7 force-pushed the autopilot branch 4 times, most recently from 2fdfce3 to 6938b03 Compare January 7, 2026 23:41
@tbowers7 tbowers7 added this to the v26.0.0 milestone Jan 8, 2026
@tbowers7 tbowers7 linked an issue Jan 8, 2026 that may be closed by this pull request
@tbowers7
Copy link
Collaborator Author

tbowers7 commented Jan 8, 2026

Closes #87

@tbowers7 tbowers7 added the enhancement New feature or request label Jan 8, 2026
@tbowers7 tbowers7 merged commit 0e04658 into develop Jan 8, 2026
5 checks passed
@tbowers7 tbowers7 deleted the autopilot branch January 8, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Integrate Autopilot package for drive-to-pose functionality

2 participants