v1
Dependencies: mbed wave_player mbed-rtos 4DGL-uLCD-SE SDFileSystem_OldbutworkswithRTOS
Revision 4:972399c63a6e, committed 2019-04-19
- Comitter:
- flameoball
- Date:
- Fri Apr 19 20:06:05 2019 +0000
- Parent:
- 3:621f4c21c8f1
- Commit message:
- v2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 621f4c21c8f1 -r 972399c63a6e main.cpp --- a/main.cpp Mon Apr 15 22:05:08 2019 +0000 +++ b/main.cpp Fri Apr 19 20:06:05 2019 +0000 @@ -57,11 +57,11 @@ for (int j = 0; j< index; j++) { cur_diff = localMax[j]-localMax[i]; - if (cur_diff>600 && cur_diff <1300) { + if (cur_diff>500 && cur_diff <1500) { actual_diff = cur_diff; heartRate = 60*1000/(actual_diff); - high_pressure = (signal[i]/.8)*120; - low_pressure = (signal[j]/.8)*80; + high_pressure = ((signal[i]-.799)+.8)*120/.8; + low_pressure = ((signal[j]-.798) +.8)*80/.8; } } }