disable location averaging
This commit is contained in:
@ -31,7 +31,7 @@ requests = adafruit_requests.Session(pool, ssl_context)
|
|||||||
locavg = []
|
locavg = []
|
||||||
def location_avg():
|
def location_avg():
|
||||||
global locavg
|
global locavg
|
||||||
if len(locavg) > 10:
|
if len(locavg) > 1:
|
||||||
locavg = locavg[1:]
|
locavg = locavg[1:]
|
||||||
lavg = list(zip(*locavg))
|
lavg = list(zip(*locavg))
|
||||||
print(lavg[0], lavg[1])
|
print(lavg[0], lavg[1])
|
||||||
|
|||||||
Reference in New Issue
Block a user