Update
This commit is contained in:
parent
16ac2b416d
commit
e3df883fa8
@ -51,7 +51,6 @@ class ProxStream:
|
||||
p10 += int(raw3[9])
|
||||
p11 += int(raw3[10])
|
||||
self.proximity_buffer = [int(p1/2), int(p2/2), int(p3/2), int(p4/2), int(p5/2), int(p6/2), int(p7/32), int(p8/2), int(p9/2), int(p10/2), int(p11/2)]
|
||||
print(self.proximity_buffer)
|
||||
except Exception as e:
|
||||
self.log.critical(f"ERROR: {e}, serial input: {raw}")
|
||||
|
||||
@ -78,7 +77,7 @@ class Proximity:
|
||||
self.rear_sensors = [4, 5, 6, 7, 8, 9, 10] # TODO: change with more sensors
|
||||
self.proximity_detects = 0
|
||||
self.proximity_detect_thresh = 1
|
||||
self.proximity_stream = ProxStream()
|
||||
self.proximity_stream = ProxStream().start()
|
||||
self.proximities = [99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99]
|
||||
|
||||
def get_prox_readings(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user