Skip to content

Drive detections#34

Open
Unclesdad wants to merge 113 commits intomainfrom
drive-detections
Open

Drive detections#34
Unclesdad wants to merge 113 commits intomainfrom
drive-detections

Conversation

@Unclesdad
Copy link
Copy Markdown
Member

Odometry FOM as well as vision FOM to influence estimated poses, all implemented in Drive.java.

boolean isColliding() and isSkidding() methods in Drive.java, where it is colliding if it's acceleration is more than twice the max accel, and is skidding if the fastest wheel's speed is more than the slowest wheel's speed by a certain skidding threshold (set to five m/s for the time being).

If the robot is colliding, the max acceleration will be increased so the driver can maneuver out of that situation correctly.

Two new classes--BetterPoseEstimator and BetterSwerveDrivePoseEstimator--are introduced to implement the FOM changes to our pose calculation. It still uses a Kalman filter on top of the FOM.

Vision FOM is given to the drive by periodically getting it in Robot.java and then giving it to drive through a method.

@Unclesdad Unclesdad requested a review from a team as a code owner March 3, 2025 04:24
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.

8 participants