You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -205,6 +208,8 @@ int main(int argc, char** argv) {
205
208
size_t num_read = 0;
206
209
uint32_t _inf_checksum;
207
210
211
+
float skip_threshold = 0;
212
+
208
213
auto start_time = std::chrono::high_resolution_clock::now();
209
214
auto current_time = std::chrono::high_resolution_clock::now();
210
215
@@ -228,7 +233,53 @@ int main(int argc, char** argv) {
228
233
char _inbuf[255];
229
234
memcpy(_inbuf, line.c_str(), line.length() + 2);
230
235
236
+
for(int i = 0; i < READING_DISC_COUNT; i++) {
237
+
ignore_disc[i] = false;
238
+
}
239
+
240
+
// Command list
241
+
// S <COMport:str> - Set serial output
242
+
// o <Filepath:str> - Set output log file
243
+
// d <disc_id:int> - [DEBUG] get size of discrim
244
+
// l <Filepath:str> - load file for streaming
245
+
// n - [DEBUG] gets next line and prints
246
+
// N <num_lines:int> - Skips num_lines from the input
247
+
// s - Stream data as fast as possible
248
+
// r - Stream data in realtime
249
+
250
+
// i <disc_id:int> - Ignore this disc_id when streaming
251
+
// R <disc-id:int> <intv:float> - Enable this sensor report.
252
+
// T <filter_thresh:float> - Entries will be probabilistically skipped if there is high latency. This sets the threshold (in seconds) at which 100% will be skipped.
0 commit comments