openpilot v0.6.5 release

old-commit-hash: cf80f7a28b
This commit is contained in:
Vehicle Researcher
2019-10-09 18:43:53 +00:00
parent 8a2b63b019
commit 89d1d84c70
242 changed files with 2887 additions and 1390 deletions
+4 -1
View File
@@ -12,7 +12,10 @@ def interp(x, xp, fp):
hi += 1
low = hi - 1
return fp[-1] if hi == N and xv > xp[low] else (
fp[0] if hi == 0 else
fp[0] if hi == 0 else
(xv - xp[low]) * (fp[hi] - fp[low]) / (xp[hi] - xp[low]) + fp[low])
return [get_interp(v) for v in x] if hasattr(
x, '__iter__') else get_interp(x)
def mean(x):
return sum(x) / len(x)