In the example code for I2C (and presumably for SPI, though I didn't look) it incorrectly computes the heading. If my==0, it sets the heading to 180 degrees, then manipulates the heading as if it were in radians instead. To process the following code correctly, it should be set to pi instead.
In the example code for I2C (and presumably for SPI, though I didn't look) it incorrectly computes the heading. If my==0, it sets the heading to 180 degrees, then manipulates the heading as if it were in radians instead. To process the following code correctly, it should be set to pi instead.