[Positioning] Stock: do not regenerate AP coord.

Do not generate reference points where an AP sits (normally we already
have the true measurement).
This commit is contained in:
Matteo Cypriani 2011-07-23 09:10:49 +02:00
parent c85c6357fb
commit 3402809c09
1 changed files with 5 additions and 0 deletions

View File

@ -445,6 +445,11 @@ void Stock::regenerate_reference_points()
{
Point3D current_point(x,y,z) ;
// If the point is the coordinates of an existing AP, we don't
// need to generate it
if (is_ap_coordinate(current_point))
continue ;
for (unordered_map<string, AccessPoint>::const_iterator
rx = aps.begin() ; rx != aps.end() ; ++rx)
{