HRV -> Mood

Dependencies:   MAX30101 Hexi_KW40Z Hexi_OLED_SSD1351

Files at this revision

API Documentation at this revision

Comitter:
jeannie9809
Date:
Sat Mar 16 22:34:14 2019 +0000
Parent:
12:95d141421e18
Child:
14:0258b126d726
Commit message:
Before i even touch bluetooth

Changed in this revision

8cee5929f4d8/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/8cee5929f4d8/main.cpp	Sat Mar 16 08:08:25 2019 +0000
+++ b/8cee5929f4d8/main.cpp	Sat Mar 16 22:34:14 2019 +0000
@@ -43,9 +43,10 @@
 // I added this
 const int num_samples = 500; // for 30 sec
 int ppg[num_samples];
-int SDNN_n, SDNN, valence_arousal;
+int SDNN, valence_arousal;
 double HF_LF = 0.0;
-double HF_LF_n = 0.0;
+double HF_LF_n;
+int SDNN_n = 0;
 bool ready = false;
 
 void StartHaptic(void)
@@ -494,9 +495,6 @@
             // Display time reading in 35px by 15px textbox at(x=55, y=40) 
             oled.TextBox((uint8_t *)text,55,55,35,15);
         }*/
-        
-                
-        
         Thread::wait(1000);
     }
     return 0;