performance enhancements

memory enhancements
prevent starting sensors more than once
fix for wifi lag issues
map scaling for huge buildings
This commit is contained in:
2016-10-01 10:21:15 +02:00
parent 833327bafd
commit 44f9b6ac80
16 changed files with 197 additions and 26 deletions

View File

@@ -5,7 +5,7 @@
#include "../nav/NavControllerListener.h"
#include <Indoor/misc/Debug.h>
#ifdef Android
#ifdef ANDROID
#include <QtAndroidExtras>
#endif
@@ -48,10 +48,10 @@ private:
/** call java */
void log(const double x, const double y, const double z) {
#ifdef Android
Log::add("SLWA", "calling android with lon/lat/floor");
#ifdef ANDROID
//Log::add("SLWA", "calling android with lon/lat/floor");
int res = QAndroidJniObject::callStaticMethod<int>("indoor/java/StepLoggerClient", "log", "(DDD)I", x, y, z);
if (res != 1337) {throw Exception("error while logging");}
//if (res != 1337) {throw Exception("invalid return code while sending the current position to StepLogger.\nService Down?");}
#endif
}