My team recently got an inertial sensor, and when I found the commands to use the inertial sensor none of them worked. Is there some set up code I need in the pre auton to make it work? every time I use “TurnToHeading” or “spinTo” it says it is an error. I have also tried different capitalizations for the commands, and I looked through the command list in Vexcode but I didn’t find any commands for the inertial sensor.
The turnToHeading and spinTo methods only work if you are using a Drivetrain object.
If you set up your motors manually, those methods will throw errors.
1 Like
Generally, an Inertial sensor is used less for direct turnTo’s and more for tracking heading for PID loops.
Hope this helps!