Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RD117_MBED by
Diff: algorithm/algorithm.h
- Revision:
- 5:27d600e46926
- Parent:
- 3:7c0fb55eb3ff
--- a/algorithm/algorithm.h Thu May 19 22:04:06 2016 +0000
+++ b/algorithm/algorithm.h Tue Apr 10 03:36:39 2018 +0000
@@ -63,17 +63,18 @@
#define ALGORITHM_H_
#include "mbed.h"
-
#define true 1
#define false 0
-#define FS 100
+#define FS 100
+//#define FS 50
#define BUFFER_SIZE (FS* 5)
+//#define BUFFER_SIZE (FS* 10)
#define HR_FIFO_SIZE 7
#define MA4_SIZE 4 // DO NOT CHANGE
#define HAMMING_SIZE 5// DO NOT CHANGE
#define min(x,y) ((x) < (y) ? (x) : (y))
-const uint16_t auw_hamm[31]={ 41, 276, 512, 276, 41 }; //Hamm= long16(512* hamming(5)');
+const uint16_t auw_hamm[31]={ 41, 276, 512, 276, 41 }; //Hamm= long16(512* hamming(5)'); //why are they applying this hamming window
//SPO2table is computed as -45.060*ratioAverage* ratioAverage + 30.354 *ratioAverage + 94.845 ;
const uint8_t uch_spo2_table[184]={ 95, 95, 95, 96, 96, 96, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 99, 99, 99, 99,
99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,

