Inertial Sensor Problem

I just recently started trying to figure out the inertial sensor but I am having a bit of an issue. I don’t have my code right now but when I use .heading or .rotation it gives me super wild huge numbers that seem to fluctuate all over the place. When I use .value it seems to give me what I would expect from .heading but I would ideally like to use .rotation. Has anyone else had this problem and might know what is wrong?

That sounds like you are displaying floating point numbers with the wrong formatting, make sure to use “%f” not “%d”.

5 Likes