BroncBotz3481/YAGSL-Example

[yaw/pitch/roll imu] imu orientation bug causes field centric bugs

Opened this issue · 3 comments

Different orientation of the imu causes field centric drive to not work properly. If you end up needing to review, our discussion was here: https://discord.com/channels/176186766946992128/1194445461852008498/1200599365434216508.

To replicate: Mount imu (Pigeon2 in my case) perpendicular to the robot, with it oriented right side up (so if you look at it, the words aren't upside down or on its side). When driving with the robot, field centrically works for just driving, but when driving while rotating, it does not act field centrically.

I have a similar issue on our robot. I will try rolling back the changes from the ternary IMU change on Friday. Our robot used to work and then started misbehaving in a similar way described here. My hunch is that is the change that changed behavior.

I am also experiencing this bug.

and that is the necessary amount of complaints required to fix it. I will add it and release it tomorrow afternoon.