FRC-1250 / Team-1250-Crescendo2024

MIT License
0 stars 0 forks source link

Align Pathplanner and field centric swerve #38

Closed Rodney-Lewis closed 6 months ago

Rodney-Lewis commented 6 months ago

Description

https://www.chiefdelphi.com/t/pathplanner-2024-beta/442364/369

Field centric swerve assumes +X is forward which doesn't natively work on the red side of the field when using the Pathplanner and WPILib odometry. Pathplanner and WPILib as they assume the origin of the field is mapped to the right corner of the blue alliance wall so forward would actually be negative.

Find a way to correct the driving direction based on the side of field you're on. No changes are required for the path itself.

Definition of done

Rodney-Lewis commented 6 months ago

Alliance check needs to be put in multiple places to be reliable - https://www.chiefdelphi.com/t/getalliance-always-returning-red/425782/27

Rodney-Lewis commented 6 months ago

Fixed in Livonia prep.