little parameter changes while testing performance
This commit is contained in:
@@ -188,6 +188,12 @@ void Controller::onLoadButton() {
|
||||
im = Floorplan::Reader::readFromString(str.toStdString());
|
||||
|
||||
|
||||
//just for debugging and testing in SHL REMOVE THAT LATER IMPORTANT!!!!
|
||||
// im->floors[0]->obstacles.clear();
|
||||
// im->floors[1]->obstacles.clear();
|
||||
// im->floors[2]->obstacles.clear();
|
||||
// im->floors[3]->obstacles.clear();
|
||||
|
||||
|
||||
const std::string sGrid = fGrid.fileName().toStdString();
|
||||
std::ifstream inp(sGrid, std::ifstream::binary);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Settings {
|
||||
namespace IMU {
|
||||
const float turnSigma = 1.5; // 3.5
|
||||
const float stepLength = 0.80;
|
||||
const float stepSigma = 0.20;
|
||||
const float stepSigma = 0.40; //toni changed
|
||||
}
|
||||
|
||||
const float smartphoneAboveGround = 1.3;
|
||||
|
||||
@@ -50,7 +50,9 @@ private:
|
||||
|
||||
#ifdef ANDROID
|
||||
//Log::add("SLWA", "calling android with lon/lat/floor");
|
||||
int res = QAndroidJniObject::callStaticMethod<int>("indoor/java/StepLoggerClient", "log", "(DDD)I", x, y, std::round(z));
|
||||
|
||||
double rounded_z = std::round(z);
|
||||
int res = QAndroidJniObject::callStaticMethod<int>("indoor/java/StepLoggerClient", "log", "(DDD)I", x, y, rounded_z);
|
||||
//if (res != 1337) {throw Exception("invalid return code while sending the current position to StepLogger.\nService Down?");}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
const WiFiMeasurements wifiObs = vg.group(_observation.wifi);
|
||||
const int numAP2 = wifiObs.entries.size();
|
||||
|
||||
//Log::add("Filter", "VAP: " + std::to_string(numAP1) + " -> " + std::to_string(numAP2));
|
||||
Log::add("Filter", "VAP: " + std::to_string(numAP1) + " -> " + std::to_string(numAP2));
|
||||
|
||||
// sanity check
|
||||
Assert::equal((int)particles.size(), Settings::numParticles, "number of particles does not match the settings!");
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
pf->setEstimation(std::move(estimation));
|
||||
pf->setResampling(std::move(resample));
|
||||
|
||||
pf->setNEffThreshold(0.75);
|
||||
pf->setNEffThreshold(0.85); //before 0.75, edit by toni
|
||||
//pf->setNEffThreshold(0.65); // still too low?
|
||||
//pf->setNEffThreshold(0.25); // too low
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ public:
|
||||
const bool step = sd.add(ts, data);
|
||||
if (step) {
|
||||
informListeners(ts, StepData(1));
|
||||
Log::add("Step", "Step Detected!" + std::to_string(ts.ms()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user