some fixes [multithreading,..]
needed interface changes [new options] logger for android wifi-ap-optimization new test-cases
This commit is contained in:
@@ -136,7 +136,7 @@ public:
|
||||
/** add the given floor to the grid */
|
||||
void addFloor(const Floorplan::Floor* floor, GridFactoryListener* listener = nullptr) {
|
||||
|
||||
Log::add(name, "adding floor " + floor->name, true);
|
||||
Log::add(name, "adding floor '" + floor->name + "'", true);
|
||||
if (listener) {listener->onGridBuildUpdateMinor("adding floor " + floor->name);}
|
||||
|
||||
const BBox2 bbox = getFloorOutlineBBox(floor->outline);
|
||||
@@ -148,6 +148,7 @@ public:
|
||||
|
||||
const int total = (x2-x1) / helper.gridSize();
|
||||
int cur = 0;
|
||||
int numNodes = 0;
|
||||
|
||||
// build grid-points for floor-outline
|
||||
for(int x_cm = x1; x_cm < x2; x_cm += helper.gridSize()) {
|
||||
@@ -169,10 +170,17 @@ public:
|
||||
if (grid.hasNodeFor(t)) {continue;}
|
||||
grid.add(t);
|
||||
|
||||
// debug
|
||||
++numNodes;
|
||||
|
||||
}
|
||||
|
||||
if (listener) {listener->onGridBuildUpdateMinor(total, ++cur);}
|
||||
|
||||
}
|
||||
|
||||
Log::add(name, "added " + std::to_string(numNodes) + " nodes");
|
||||
|
||||
// connect the g
|
||||
connectAdjacent(floor, z_cm);
|
||||
|
||||
@@ -225,9 +233,9 @@ public:
|
||||
}
|
||||
|
||||
/** connect all neighboring nodes located on the given height-plane */
|
||||
void connectAdjacent(const Floorplan::Floor* floor, const float z_cm) {
|
||||
void connectAdjacent(const Floorplan::Floor* floor, const int z_cm) {
|
||||
|
||||
Log::add(name, "connecting all adjacent nodes at height " + std::to_string(z_cm), false);
|
||||
Log::add(name, "connecting all adjacent nodes within floor '" + floor->name + "' (atHeight: " + std::to_string(z_cm) + "cm)", false);
|
||||
Log::tick();
|
||||
|
||||
// connect adjacent grid-points
|
||||
|
||||
Reference in New Issue
Block a user