Wrote code to generate digitally filtered data. Converted to use digitally filtered data as input
Reduced array size
Starting to move to single threshold processig
Reduced to 5N now trying to replace R_peak_vals
Replaced max call of sections of data with a manual max.
Fixed bug w/ incorrect type
Checkin - trying to fix divide by zero error
Checkpoint: Basic algorithm fits and runs on c2000. Now starting to import digital filters back
Moved digital filters back
Checkpoint - moved digital filters and removed precision optimization
First Prototype deadline. Checkpoint with the first beat thrown out.
CHECKPOINT: Trying to figure out why algorithm provides the incorrect result for a signal of 23bpm
CHECKPOINT: Fixed bug with heart_rate_official_w_debug.m producing low hr values for the first window of 230bpm signal.
I fixed it by removing the dc drift from the signal first before applying the front end filters
Updated debug version of algorithm to be essentially equivalent with the one on the microccontroller
Fixed issue where the data was being overwritten by the absolute value of the data in normalization
Checkpoint: Fixed bugs from Cycle 3 rush/optimizations with heart_rate_official_cport.m where:
1. max_index in finding R-peaks was being set to i instead of the actual index 'j'
2. where the signal was being normalized by max(data) instead of max(abs(data))
CHECKPOINT: Fixed issues where:
1. The algorithm produced weird values for signals where the leads were switched
   Fixed this by replacing the peak values of x1(i) with sqrt(x5) x5 being the square of the signal.
   This provides the nice balance of giving x1 when the signal is not inverted and abs(x) when the signal is inverted.

2. The emulator now averages over 4 sample windows to provide more stability with the introduction of noise
Commiting code currently on the microprocessor.
Note that there are still issues with getting hr for the baby signal
Fixed bug with num_cols_indices being sample length instead of the # of peaks
Checkpoing: Fixed bug with baby signal. Bug was incorrect parameter fixed point conversion