|
|
@ -431,22 +431,22 @@ static void ads1293_sample_one_frame() { |
|
|
|
if (!m_frame_buffer) pFrameBufferAB_switch(); |
|
|
|
static uint32_t sample[6]; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
#if 1 |
|
|
|
ads1293_read_ecgs(&m_ads1293_1, &sample[3]); |
|
|
|
#if CHANNEL_NUM == 2 |
|
|
|
ads1293_read_ecgs(&m_ads1293_0, &sample[0]); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
ads1293_read_ecg(&m_ads1293_1, 1, &sample[SENSOR1_ID]); |
|
|
|
ads1293_read_ecg(&m_ads1293_1, 2, &sample[SENSOR2_ID]); |
|
|
|
ads1293_read_ecg(&m_ads1293_0, 1, &sample[SENSOR0_ID]); |
|
|
|
// ads1293_read_ecg(&m_ads1293_1, 1, &sample[SENSOR1_ID]); |
|
|
|
// ads1293_read_ecg(&m_ads1293_1, 2, &sample[SENSOR2_ID]); |
|
|
|
// ads1293_read_ecg(&m_ads1293_0, 1, &sample[SENSOR0_ID]); |
|
|
|
|
|
|
|
// medianFilter |
|
|
|
|
|
|
|
uint32_t val[3]; |
|
|
|
// val[0] = MedianFilter_Update(&medianFilter[0], sample[SENSOR0_ID]); |
|
|
|
// val[1] = MedianFilter_Update(&medianFilter[1], sample[SENSOR1_ID]); |
|
|
|
// val[2] = MedianFilter_Update(&medianFilter[2], sample[SENSOR2_ID]); |
|
|
|
val[0] = MedianFilter_Update(&medianFilter[0], sample[SENSOR0_ID]); |
|
|
|
val[1] = MedianFilter_Update(&medianFilter[1], sample[SENSOR1_ID]); |
|
|
|
val[2] = MedianFilter_Update(&medianFilter[2], sample[SENSOR2_ID]); |
|
|
|
|
|
|
|
// int32_t val0 = LPFilter_Update(&lowpassfilter[0], sample[SENSOR0_ID]); |
|
|
|
// int32_t val1 = LPFilter_Update(&lowpassfilter[1], sample[SENSOR1_ID]); |
|
|
|