more debug msgs. adjusts on streamer and assembler to work with frame_index instead of pulse_id.

This commit is contained in:
2021-02-19 18:16:34 +01:00
parent dda2f9610e
commit 7db438671c
11 changed files with 112 additions and 48 deletions
+3 -1
View File
@@ -19,6 +19,7 @@ int main (int argc, char *argv[])
cout << "Usage: sf_stream [detector_json_filename]"
" [stream_name]" << endl;
cout << "\tdetector_json_filename: detector config file path." << endl;
cout << "\tstream_name: name of the stream." << endl;
cout << endl;
exit(-1);
@@ -40,7 +41,8 @@ int main (int argc, char *argv[])
ImageMetadata meta;
while (true) {
zmq_recv(receiver, &meta, sizeof(meta), 0);
char* data = ram_buffer.read_image(meta.pulse_id);
char* data = ram_buffer.read_image(meta.frame_index);
sender.send(meta, data);