added gps support
added compass support added ui elements for gps and compass added support for writing sensor data
This commit is contained in:
10
Settings.h
10
Settings.h
@@ -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/";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user