DavidArmstrong / SCL3300

Arduino library for interfacing with the Murata SCL3300 Inclinometer via SPI
MIT License
20 stars 11 forks source link

Need functions for Calculated Tilt Offset from Level values #3

Closed DavidArmstrong closed 4 years ago

DavidArmstrong commented 4 years ago

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.

DavidArmstrong commented 4 years ago

merge done