Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

Revision:
21:fc6c33206152
Parent:
19:d58e1e1a9a24
--- 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;