The current functions getCalculatedAngleX/Y/Z return a value in the range of 0-360 degrees. While this is useful, generally one is more interested in getting a signed value of the offset from level. This is because this device is designed to determine very accurately how level the system is in relation to its environment.
New functions to be implemented:
getTiltLevelOffsetAngleX() -- Returns a double float of the tilt offset from level value in degrees for the X direction.
getTiltLevelOffsetAngleY() -- Returns a double float of the tilt offset from level value in degrees for the Y direction.
getTiltLevelOffsetAngleZ() -- Returns a double float of the tilt offset from level value in degrees for the Z direction.
A new example ino file - Example1_BasicTiltLevelOffset, will be implemented as a result. All the current examples will be moved up by one in number to make room for the new Example ino file.
The current functions getCalculatedAngleX/Y/Z return a value in the range of 0-360 degrees. While this is useful, generally one is more interested in getting a signed value of the offset from level. This is because this device is designed to determine very accurately how level the system is in relation to its environment. New functions to be implemented: getTiltLevelOffsetAngleX() -- Returns a double float of the tilt offset from level value in degrees for the X direction. getTiltLevelOffsetAngleY() -- Returns a double float of the tilt offset from level value in degrees for the Y direction. getTiltLevelOffsetAngleZ() -- Returns a double float of the tilt offset from level value in degrees for the Z direction. A new example ino file - Example1_BasicTiltLevelOffset, will be implemented as a result. All the current examples will be moved up by one in number to make room for the new Example ino file.