Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Achim Morschhauser
GeomagLogger
Commits
530e47cc
Commit
530e47cc
authored
Dec 01, 2020
by
Achim Morschhauser
Browse files
Add timestamp and window size for filter1 error
parent
99e765fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Filter_Obs.cpp
View file @
530e47cc
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment