Commit 530e47cc authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Add timestamp and window size for filter1 error

parent 99e765fc
......@@ -220,6 +220,8 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in,
long this_msec = 0;
struct timespec last_timespec;
struct timespec this_timespec;
// Timestamp as string for logging
std::string timestamp;
// =====================================================================
......@@ -364,7 +366,12 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in,
// if we get here, it means we don't have enough data to filter. A block probably got shortened.
// In this case, set data value to NaN
filter_data_temp->set_values_MD();
fprintf(stderr, "no filter1!\n");
filter_data_temp->median_time(&tofilter1);
filter_data_temp->string(&timestamp,0);
std::cerr << "[" << timestamp << "]: "
<< "no filter1 - "
<< tofilter1.size()
<< std::endl;
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment