For Hepta-Sat Lite

Revision:
11:bdcabb617bfb
Parent:
10:e752c65c7c56
Child:
12:811d24f1d74e
diff -r e752c65c7c56 -r bdcabb617bfb Hepta6axis.cpp
--- a/Hepta6axis.cpp	Tue Aug 17 10:51:08 2021 +0000
+++ b/Hepta6axis.cpp	Tue Aug 24 02:31:40 2021 +0000
@@ -26,12 +26,14 @@
     cmd[1] = 0x02;
     n_axis.write(addr_accel_gyro,cmd,2);
     n_axis.stop();
+    wait_ms(500);
 }
 
 void Hepta6axis::sen_acc(float *ax,float *ay,float *az)
 {
-    setup();
-    setup();
+    //setup();
+    //setup();
+    
 //x-axis accel
     adata[0] = 0x3B;
     n_axis.write(addr_accel_gyro,adata,1);