From 0e766106085fcdf0378b019818e732f2bdb1a492 Mon Sep 17 00:00:00 2001 From: TimZnr Date: Thu, 10 Nov 2022 14:42:14 +0100 Subject: [PATCH] Disable opencv info logging; Run loop until cin reads input --- autonomous_mode_main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/autonomous_mode_main.cpp b/autonomous_mode_main.cpp index 5760d0e..35fb233 100644 --- a/autonomous_mode_main.cpp +++ b/autonomous_mode_main.cpp @@ -1,11 +1,15 @@ #include "lfr.h" + +#include int main(void) { + //Disable opencv logging messages + cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_WARNING); + LFR lfr; - //todo: Future will block leaving the scope of startLoop(). You will have to think of a way to break the loop properly. lfr.startLoop(); - std::cout<<"AutonomousMode: Loop started\n"; + char a; + std::cin >> a; lfr.endLoop(); - std::cout<<"AutonomousMode: Loop ended\n"; } \ No newline at end of file