From efaa7478ec9ae30288de384363c1e62db45902e0 Mon Sep 17 00:00:00 2001 From: michael-heinrich Date: Mon, 8 Jan 2018 20:07:32 +0100 Subject: [PATCH] Hemic Driver now outputs relative position on console --- src/drivers/hemic/hemic.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/drivers/hemic/hemic.cpp b/src/drivers/hemic/hemic.cpp index eee7e12..f132266 100644 --- a/src/drivers/hemic/hemic.cpp +++ b/src/drivers/hemic/hemic.cpp @@ -623,7 +623,9 @@ void openPositionLog(tBot *bot) { if (bot->distanceLog == NULL) { - bot->distanceLog = fopen("relative_distance.csv", "a"); + //bot->distanceLog = fopen("relative_distance.csv", "a"); + std::cout << "Hemic relative position:\n"; + std::cout << "xDistance, yDistance\n"; } } @@ -637,6 +639,10 @@ void writePositionLog(tBot *bot, float x, float y) x, y ); } + else + { + std::cout << x << ", " << y << "\n"; + } } void closePositionLog(tBot *bot)