From 36d69dbd9ea0ce24914a8c369cea13effac331f6 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 13 Jul 2021 18:02:43 +0200 Subject: [PATCH] Add output and delay to simulator --- std-udp-recv/test/simulator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/std-udp-recv/test/simulator.cpp b/std-udp-recv/test/simulator.cpp index 3fb5fd6..decb0e5 100644 --- a/std-udp-recv/test/simulator.cpp +++ b/std-udp-recv/test/simulator.cpp @@ -2,6 +2,7 @@ #include #include "../include/UdpRecvConfig.hpp" #include +#include #include "mock/udp.hpp" #ifdef USE_EIGER @@ -76,6 +77,11 @@ int main(int argc, char **argv) { sizeof(sockaddr_in)); } } + + cout << "Sent image_id " << image_id << endl; + // 10Hz == 100ms between images + usleep(100 * 1000); + image_id = ++image_id % MAX_IMAGE_ID; } } \ No newline at end of file