fixed baro

This commit is contained in:
toni
2016-10-01 10:34:58 +02:00
parent 833327bafd
commit 04f98f62d7
6 changed files with 38 additions and 15 deletions

View File

@@ -5,7 +5,7 @@
#include "../nav/NavControllerListener.h"
#include <Indoor/misc/Debug.h>
#ifdef Android
#ifdef ANDROID
#include <QtAndroidExtras>
#endif
@@ -41,6 +41,7 @@ public:
// inform the logger
log(ipin.lon, ipin.lat, ipin.floorNr);
//wird problemlos aufgerufen
}
private:
@@ -48,8 +49,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
//wird nicht aufgerufen?
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");}
#endif