openpilot v0.4.5 release

old-commit-hash: 37285038d3
This commit is contained in:
Vehicle Researcher
2018-04-28 09:44:39 +00:00
parent aee7d818e8
commit 7c1e812922
35 changed files with 1227 additions and 115 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class LocalCoord(object):
"""
def __init__(self, init_geodetic, init_ecef):
self.init_ecef = init_ecef
lat, lon, _ = (np.pi/180)*init_geodetic
lat, lon, _ = (np.pi/180)*np.array(init_geodetic)
self.ned2ecef_matrix = np.array([[-np.sin(lat)*np.cos(lon), -np.sin(lon), -np.cos(lat)*np.cos(lon)],
[-np.sin(lat)*np.sin(lon), np.cos(lon), -np.cos(lat)*np.sin(lon)],
[np.cos(lat), 0, -np.sin(lat)]])