mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
d3 update
This commit is contained in:
parent
e4de5795ff
commit
fdc2876934
@ -51,8 +51,9 @@ def run(server_sock):
|
|||||||
while distance < settings.RSSI_DISTANCE and try_counter < settings.MAX_RSSI_TRY_COUNT:
|
while distance < settings.RSSI_DISTANCE and try_counter < settings.MAX_RSSI_TRY_COUNT:
|
||||||
try_counter += 1
|
try_counter += 1
|
||||||
distance = btrssi.get_rssi()
|
distance = btrssi.get_rssi()
|
||||||
if try_counter % 10 == 0:
|
if False:#try_counter % 10 == 0:
|
||||||
print('Distance to {} at try #{}\trssi={}'.format(address, try_counter, distance))
|
print('Distance to {} at try #{}\trssi={}'.format(address, try_counter, distance))
|
||||||
|
print('Distance to {} at try #{}\trssi={}'.format(address, try_counter, distance))
|
||||||
time.sleep(settings.DISTANCE_SLEEP)
|
time.sleep(settings.DISTANCE_SLEEP)
|
||||||
|
|
||||||
if distance < settings.RSSI_DISTANCE:
|
if distance < settings.RSSI_DISTANCE:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user