base program for tilt measurement

Dependencies:   COG4050_ADT7420 ADXL362

Fork of COG4050_adxl355_adxl357-ver2 by ADI_CAC

Revision:
10:f5ba762b58b4
Parent:
8:9e6ead2ee8d7
--- a/ADXL35x/ADXL355.h	Mon Sep 03 10:39:56 2018 +0000
+++ b/ADXL35x/ADXL355.h	Fri Sep 07 15:50:53 2018 +0000
@@ -163,7 +163,10 @@
     uint64_t fifo_scan();
     // ADXL conversion
     float convert(uint32_t data);
-    
+    // ADXL angle measurement
+    float single_axis(float x);
+    float dual_axis(float x, float y);
+    float tri_axis(float x, float y, float z);
 private:
     // SPI adxl355;                 ///< SPI instance of the ADXL
     SPI adxl355; DigitalOut cs;