openpilot v0.4.3.1 release

old-commit-hash: 3d628a6fe2
This commit is contained in:
Vehicle Researcher
2018-03-19 23:40:24 -07:00
parent 85171c28fc
commit 171647c2fc
27 changed files with 131 additions and 74 deletions
+2
View File
@@ -89,9 +89,11 @@ class LocalCoord(object):
def ecef2ned(self, ecef):
ecef = np.array(ecef)
return np.dot(self.ecef2ned_matrix, (ecef - self.init_ecef).T).T
def ned2ecef(self, ned):
ned = np.array(ned)
# Transpose so that init_ecef will broadcast correctly for 1d or 2d ned.
return (np.dot(self.ned2ecef_matrix, ned.T).T + self.init_ecef)