little parameter changes while testing performance
This commit is contained in:
@@ -188,6 +188,12 @@ void Controller::onLoadButton() {
|
|||||||
im = Floorplan::Reader::readFromString(str.toStdString());
|
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();
|
const std::string sGrid = fGrid.fileName().toStdString();
|
||||||
std::ifstream inp(sGrid, std::ifstream::binary);
|
std::ifstream inp(sGrid, std::ifstream::binary);
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
namespace Settings {
|
namespace Settings {
|
||||||
|
|
||||||
const int numParticles = 5000;
|
const int numParticles = 5000;
|
||||||
|
|
||||||
namespace IMU {
|
namespace IMU {
|
||||||
const float turnSigma = 1.5; // 3.5
|
const float turnSigma = 1.5; // 3.5
|
||||||
const float stepLength = 0.80;
|
const float stepLength = 0.80;
|
||||||
const float stepSigma = 0.20;
|
const float stepSigma = 0.40; //toni changed
|
||||||
}
|
}
|
||||||
|
|
||||||
const float smartphoneAboveGround = 1.3;
|
const float smartphoneAboveGround = 1.3;
|
||||||
|
|||||||
@@ -50,7 +50,9 @@ private:
|
|||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
//Log::add("SLWA", "calling android with lon/lat/floor");
|
//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?");}
|
//if (res != 1337) {throw Exception("invalid return code while sending the current position to StepLogger.\nService Down?");}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ public:
|
|||||||
const WiFiMeasurements wifiObs = vg.group(_observation.wifi);
|
const WiFiMeasurements wifiObs = vg.group(_observation.wifi);
|
||||||
const int numAP2 = wifiObs.entries.size();
|
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
|
// sanity check
|
||||||
Assert::equal((int)particles.size(), Settings::numParticles, "number of particles does not match the settings!");
|
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->setEstimation(std::move(estimation));
|
||||||
pf->setResampling(std::move(resample));
|
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.65); // still too low?
|
||||||
//pf->setNEffThreshold(0.25); // too low
|
//pf->setNEffThreshold(0.25); // too low
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ public:
|
|||||||
const bool step = sd.add(ts, data);
|
const bool step = sd.add(ts, data);
|
||||||
if (step) {
|
if (step) {
|
||||||
informListeners(ts, StepData(1));
|
informListeners(ts, StepData(1));
|
||||||
Log::add("Step", "Step Detected!" + std::to_string(ts.ms()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user