add bluetooth and UWB parameters to RangingBeacon model

This commit is contained in:
Laura Klünder 2024-03-10 13:45:20 +01:00
parent 0fd789173a
commit 372db50224
5 changed files with 41 additions and 13 deletions

View file

@ -70,7 +70,7 @@ class Locator:
def _rebuild(self, router):
for beacon in RangingBeacon.objects.all():
peer_id = self.get_peer_id(beacon.bssid, create=True)
peer_id = self.get_peer_id(beacon.wifi_bssid, create=True)
self.peers[peer_id].xyz = (
int(beacon.geometry.x * 100),
int(beacon.geometry.y * 100),