added gps support

added compass support
added ui elements for gps and compass
added support for writing sensor data
This commit is contained in:
2017-03-21 16:27:14 +01:00
parent c7c94cbebe
commit b0712ec005
24 changed files with 586 additions and 30 deletions

View File

@@ -80,11 +80,11 @@ namespace Settings {
// qDebug(folder.c_str());
// return folder;
//return "/storage/sdcard1/YASMIN/";
std::string f1 = "/storage/sdcard1/YASMIN/";
std::string f2 = "/sdcard/YASMIN/";
const std::string f1 = "/storage/sdcard1/YASMIN/";
const std::string f2 = "/sdcard/YASMIN/";
if (QFile(f1.c_str()).exists()) {return f1;}
if (QFile(f2.c_str()).exists()) {return f2;}
throw Exception("data folder missing");
throw Exception("data folder missing. one of those:\n" + f1 + "\n" + f2);
#else
//return "/home/toni/Documents/programme/localization/YASMIN/YASMIN_DATA/";
return "/apps/android/workspace/YASMIN_DATA/";
@@ -100,6 +100,10 @@ namespace Settings {
return getRoot() + "offline/";
}
static inline std::string getRecordsDir() {
return getRoot() + "records/";
}
}
}