openpilot v0.6.5 release

This commit is contained in:
Vehicle Researcher
2019-10-09 18:43:53 +00:00
parent 703f51ed56
commit eec9bb71c4
240 changed files with 3840 additions and 2510 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)