Final_Project

Dependencies:   MMA8451Q8a SLCD mbed

Fork of SP_LCD_punch_mtr_8_v5_class by Siphamandla Simelane

Files at this revision

API Documentation at this revision

Comitter:
sphasim
Date:
Sun Apr 26 18:48:00 2015 +0000
Parent:
9:795a998ebb21
Commit message:
just started

Changed in this revision

LCD_punch_mtr8_v5.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LCD_punch_mtr8_v5.cpp	Mon Mar 30 19:27:40 2015 +0000
+++ b/LCD_punch_mtr8_v5.cpp	Sun Apr 26 18:48:00 2015 +0000
@@ -166,7 +166,27 @@
             // Change to switch/case soon.
             LCDMess(displayTitles[displayState],BLINKTIME);     
         }
-        
+    
+///STEPS PARAMETER    
+//Set up a digital filter using four registers and a summing unit 
+
+
+//Set up the dynamic threshold and dynamic precision
+//continuously updates the maximum and minimumvalues of the 3-axis acceleration every 50samples
+//the average value, (Max+min)/2 is the dynamic threshold level
+
+
+//set up the peak Detection
+
+//set up time window
+
+
+///DISTANCE PARAMETERS
+//s=number of steps*distance per step
+
+
+///SPEED PARAMETER
+//d=s/t
 // --------------------------------------------
         while (dataTimer.read() > DATATIME){
 
@@ -183,6 +203,7 @@
             if (vector > vMax) {
                 vMax = vector;
             }
+            
 //Prepare data for LCD display 
             accaxisdata[XCOMPD] = abs((float)xCounts/COUNTSCALE); // scalling is set to 1 at this point
             accaxisdata[YCOMPD] = abs((float)yCounts/COUNTSCALE);