changed number of fingerprint scans

minor parameter changes
more log lines
added VAP log to UI (debug)
fixed missing wifi timestamp for android live data
This commit is contained in:
2016-09-28 15:29:25 +02:00
parent d47322e73b
commit 5ddc455bee
9 changed files with 31 additions and 12 deletions

View File

@@ -158,10 +158,12 @@ void MapView2D::mouseReleaseEvent(QMouseEvent* evt) {
const Point2 p1(evt->x(), evt->y());
// fingerprint node pressed?
const int fpSize = UIHelper::isLarge(this->parent()) ? (40) : (25);
int idx = 0;
for (const Point2 p2 : wifiCalib->getNodes()) {
const float dist = p1.getDistance(p2);
if (dist < 25) { wifiCalib->selectNode(idx); emit update(); break; }
if (dist < fpSize) { wifiCalib->selectNode(idx); emit update(); break; }
++idx;
}