mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Quick attpemt to fix logging code
This commit is contained in:
parent
8e19caf21c
commit
a834c52b40
2 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <string>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int serialFd;
|
int serialFd;
|
||||||
|
@ -208,7 +209,7 @@ void SerialInterface::readData() {
|
||||||
}
|
}
|
||||||
if (totalSamples == GRAVITY_SAMPLES) {
|
if (totalSamples == GRAVITY_SAMPLES) {
|
||||||
gravity = glm::normalize(gravity);
|
gravity = glm::normalize(gravity);
|
||||||
printLof("gravity: %f,%f,%f\n", gravity.x, gravity.y, gravity.z);
|
//printLof("gravity: %f,%f,%f\n", gravity.x, gravity.y, gravity.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
totalSamples++;
|
totalSamples++;
|
||||||
|
|
|
@ -229,4 +229,4 @@ std::ostream& operator<<(std::ostream& os, const Agent* agent) {
|
||||||
":" << ntohs(agentPublicSocket->sin_port) << " LA: " << inet_ntoa(agentLocalSocket->sin_addr) <<
|
":" << ntohs(agentPublicSocket->sin_port) << " LA: " << inet_ntoa(agentLocalSocket->sin_addr) <<
|
||||||
":" << ntohs(agentLocalSocket->sin_port);
|
":" << ntohs(agentLocalSocket->sin_port);
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
Loading…
Reference in a new issue