Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   mbed Queue mbed-rtos FXOS8700Q

Fork of Pacemaker by Eric dollar

SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.

The project uses the Freescale K64F Microcontroller and C++ mbed library.

Revision:
21:fc6c33206152
Parent:
19:d58e1e1a9a24
Child:
33:686a1a0c690f
diff -r d58e1e1a9a24 -r fc6c33206152 motion.cpp
--- a/motion.cpp	Thu Nov 24 01:10:08 2016 +0000
+++ b/motion.cpp	Thu Nov 24 03:39:31 2016 +0000
@@ -28,13 +28,13 @@
         
 }
 
-bool isMotionThresholdExceeded () {
-    return motion_exceeded_threshold;    
-}
-
-void resetMotionDetection () {
-    motion_exceeded_threshold = 0;
-}
+//bool isMotionThresholdExceeded () {
+//    return motion_exceeded_threshold;    
+//}
+//
+//void resetMotionDetection () {
+//    motion_exceeded_threshold = 0;
+//}
 
 /**** Function: a_count
  * return: void
@@ -49,7 +49,7 @@
     
 
     if (numCount >= MAX_NUM_COUNTS) {
-        ventChamber->chngPaceWidth(1.00);
+        ventChamber->chngPaceWidth(ventChamber->getPaceWidth() - 0.01);
         red = !red;   // toggle LEDs to show acceleration threshold reached
         
         motion_exceeded_threshold = 1;