-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from commaai/devel
openpilot v0.3.9
- Loading branch information
Showing
63 changed files
with
4,807 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import numpy as np | ||
|
||
|
||
class KF1D: | ||
# this EKF assumes constant covariance matrix, so calculations are much simpler | ||
# the Kalman gain also needs to be precomputed using the control module | ||
|
||
def __init__(self, x0, A, C, K): | ||
self.x = x0 | ||
self.A = A | ||
self.C = C | ||
self.K = K | ||
|
||
self.A_K = self.A - np.dot(self.K, self.C) | ||
|
||
# K matrix needs to be pre-computed as follow: | ||
# import control | ||
# (x, l, K) = control.dare(np.transpose(self.A), np.transpose(self.C), Q, R) | ||
# self.K = np.transpose(K) | ||
|
||
def update(self, meas): | ||
self.x = np.dot(self.A_K, self.x) + np.dot(self.K, meas) | ||
return self.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule opendbc
updated
6 files
+15 −4 | honda_civic_hatchback_ex_2017_can.dbc | |
+376 −0 | honda_odyssey_exl_2018.dbc | |
+153 −140 | tesla_can.dbc | |
+197 −0 | toyota_iQ_2009_can.dbc | |
+12 −4 | toyota_prius_2017_pt.dbc | |
+15 −6 | toyota_rav4_2017_pt.dbc |
Submodule panda
updated
17 files
+2 −0 | .gitignore | |
+16 −0 | .travis.yml | |
+5 −13 | README.md | |
+1 −1 | VERSION | |
+0 −9 | board/README | |
+41 −0 | board/README.md | |
+5 −0 | board/get_sdk_mac.sh | |
+1 −1 | board/safety/safety_toyota.h | |
+1 −1 | boardesp/Makefile | |
+22 −0 | boardesp/README.md | |
+46 −11 | boardesp/webserver.c | |
+ − | buy.png | |
+8 −5 | drivers/linux/README.md | |
+54 −0 | examples/can_logger.py | |
+103 −0 | examples/can_unique.md | |
+91 −0 | examples/can_unique.py | |
+63 −0 | examples/tesla_tester.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.