fix locate_by_beacon_position some more
This commit is contained in:
parent
7cc0973800
commit
17166eaa89
2 changed files with 2 additions and 5 deletions
|
@ -249,7 +249,7 @@ class Locator:
|
|||
if len(scan_data_in_the_same_room) == 1:
|
||||
point = router.spaces[space.pk].point
|
||||
return CustomLocation(
|
||||
level=router.spaces[space.pk].level_id,
|
||||
level=router.levels[router.spaces[space.pk].level_id],
|
||||
x=point.x,
|
||||
y=point.y,
|
||||
permissions=permissions,
|
||||
|
@ -264,7 +264,7 @@ class Locator:
|
|||
x = self.peers[peer_id].xyz[0] * value.rssi / the_sum
|
||||
y = self.peers[peer_id].xyz[1] * value.rssi / the_sum
|
||||
return CustomLocation(
|
||||
level=router.spaces[space.pk].level_id,
|
||||
level=router.levels[router.spaces[space.pk].level_id],
|
||||
x=x,
|
||||
y=y,
|
||||
permissions=permissions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue