Huge problem! So when i manually calibrate the inertial, it works fine, but the second I start Autonomous, the inertial keeps spinning in circles! There is no memory leak, and the calibrate line I’m using is as follows:
the cord is isolated from other cords, the inertial functions normally (It’s not bad) and my code is throwing zero errors and no memory leaks. I have it in the correct port, i have tried switching ports. This is the JAR template on github for C++, I use visual studios.
Anyone have any suggestions?
Ahem So if you run the code, then use your eyes and look in the devices and click on the inertial, IMAGINE THAT! The inertial has a reading that corresponds to the robots X,Y, and Z orientations. The problem i have, as stated, is that instead of reading 0, its slowly reading higher and higher, indicating that the robot is spinning, when it is actually standing still. Literally nothing to do with how the drivetrain is configured whatsoever.
That’s a better explanation and description of the issue.
What sort of drift are you seeing ? How many degrees per second. Are all axis drifting or just yaw ? What happens if you calibrate using the dashboard. ?
If i calibrate in the dashboard, it works until i run auton. And the X axis is drifting +22-+7 degrees per second. its different every time i run the code