Skip to content

Commit

Permalink
Hemic Driver now outputs relative position on console
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-heinrich committed Jan 8, 2018
1 parent 3e80226 commit efaa747
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/drivers/hemic/hemic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand All @@ -637,6 +639,10 @@ void writePositionLog(tBot *bot, float x, float y)
x, y
);
}
else
{
std::cout << x << ", " << y << "\n";
}
}

void closePositionLog(tBot *bot)
Expand Down

0 comments on commit efaa747

Please sign in to comment.