base program for tilt measurement

Dependencies:   COG4050_ADT7420 ADXL362

Fork of COG4050_adxl355_adxl357-ver2 by ADI_CAC

Revision:
8:9e6ead2ee8d7
Parent:
7:5aaa09c40283
Child:
10:f5ba762b58b4
--- a/ADXL35x/ADXL355.h	Tue Aug 14 11:33:30 2018 +0000
+++ b/ADXL35x/ADXL355.h	Tue Aug 21 13:25:37 2018 +0000
@@ -7,30 +7,10 @@
 public: 
     // -------------------------- //
     // CONST AND VARIABLES        // 
-    // -------------------------- //
-    typedef struct {
-        // sensitivity
-        float Sxx;  
-        float Sxy;
-        float Sxz;
-        float Syx;
-        float Syy;
-        float Syz;
-        float Szx;
-        float Szy;
-        float Szz;
-        float St;
-        // 0g offset
-        float Bx;
-        float By;
-        float Bz;
-        float Bt;
-    } ADXL355_calib_t;   
     const static float t_sens = -9.05;    
     const static float t_bias = 1852;    
     float axis355_sens;
-    float axis357_sens;
-    ADXL355_calib_t calib_data;      
+    float axis357_sens;     
     // -------------------------- //
     // REGISTERS                  // 
     // -------------------------- //
@@ -181,11 +161,8 @@
     void fifo_setup(uint8_t nr_of_entries);
     uint32_t fifo_read_u32();
     uint64_t fifo_scan();
-    // ADXL calibration
+    // ADXL conversion
     float convert(uint32_t data);
-    ADXL355_calib_t convert_2p();
-    ADXL355_calib_t convert_3to8p();
-    ADXL355_calib_t convert_12p();
     
 private:
     // SPI adxl355;                 ///< SPI instance of the ADXL