Adjust distance buffering
This commit is contained in:
parent
0804b865f9
commit
7168feee6e
2
main.py
2
main.py
|
@ -80,7 +80,7 @@ class Marshaller(Server):
|
||||||
def get_buffered_distance_in_inches(self):
|
def get_buffered_distance_in_inches(self):
|
||||||
distance = self.get_distance_in_inches()
|
distance = self.get_distance_in_inches()
|
||||||
|
|
||||||
if abs(distance - self.last_value) > 0.25:
|
if abs(distance - self.last_value) > 0.5:
|
||||||
self.last_value = distance
|
self.last_value = distance
|
||||||
|
|
||||||
return self.last_value
|
return self.last_value
|
||||||
|
|
Loading…
Reference in New Issue