|
|
@ -443,18 +443,18 @@ static void ads1293_sample_one_frame() { |
|
|
|
|
|
|
|
// medianFilter |
|
|
|
|
|
|
|
static 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]); |
|
|
|
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]); |
|
|
|
|
|
|
|
// int32_t val0 = LPFilter_Update(&lowpassfilter[0], sample[SENSOR0_ID]); |
|
|
|
// int32_t val1 = LPFilter_Update(&lowpassfilter[1], sample[SENSOR1_ID]); |
|
|
|
// int32_t val2 = LPFilter_Update(&lowpassfilter[2], sample[SENSOR2_ID]); |
|
|
|
|
|
|
|
// uint32_t val0 = sample[SENSOR0_ID]; |
|
|
|
// uint32_t val1 = sample[SENSOR1_ID]; |
|
|
|
// uint32_t val2 = sample[SENSOR2_ID]; |
|
|
|
val[0] = sample[SENSOR0_ID]; |
|
|
|
val[1] = sample[SENSOR1_ID]; |
|
|
|
val[2] = sample[SENSOR2_ID]; |
|
|
|
|
|
|
|
if (val[0] > 0xffffff) val[0] = 0xffffff; |
|
|
|
if (val[1] > 0xffffff) val[1] = 0xffffff; |
|
|
@ -488,7 +488,7 @@ static void ads1293_sample_one_frame() { |
|
|
|
/** |
|
|
|
* @brief 缓存数据,并触发小数据块事件 |
|
|
|
*/ |
|
|
|
pLittleBlockCache_push_one_frame(val); |
|
|
|
pLittleBlockCache_push_one_frame(&val[0]); |
|
|
|
if (pLittleBlockCache_is_full()) { |
|
|
|
pEventHelper_trigger_little_block_data_event(); |
|
|
|
pLittleBlockCache_reset(); |
|
|
|