DevilBotz2876 / ChargedUp2023

Code for the FRC 2023 Robotics Competition
Other
3 stars 0 forks source link

Fix Simulation Odometry #137

Open BrownGenius opened 1 year ago

BrownGenius commented 1 year ago

Currently, simulation is mostly working. Once issue we seem to have is with odometry not matching up with the field display and actual robot positions. E.g. when running autonomous and when disabling, the robot sometimes resets its position. The reset position also seems random.

If we try to move/rotate the robot in Test mode, and then start an Autonomous routine, the robot location/rotation sometimes jumps to something different.

My guess is the issue is related to the navx gyro, differentialSim, and the drivetrain resetPosition logic.

We need simulation to be more accurate if we want to develop more advanced robot software.