So, I am trying to program the Inertial Sensor. I am confused what the Inertial1.rotation() reads, does it read the 0 to 360 degrees or something else?
Thank you in advance!
So, I am trying to program the Inertial Sensor. I am confused what the Inertial1.rotation() reads, does it read the 0 to 360 degrees or something else?
Thank you in advance!
https://api.vexcode.cloud/v5/html/classvex_1_1inertial.html#a07caa7a985850b317c7155fd40cd255b
According to this, the value returned is a double (or a value that contains decimal places).
And if you’re confused, Rotation is explained here:
To simplify, if you rotate the robot 530.4 degrees to the right, Inertial.Heading() will return “530.4” and not “170.4”.
Thank you so much, this was very helpful!