disable location averaging

This commit is contained in:
cqc
2026-01-04 11:44:37 +01:00
parent a03b9c2160
commit a045d56b62

View File

@ -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])