Skip to content

Commit

Permalink
Update types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJansen authored Sep 18, 2019
1 parent 2cd28cf commit b8d076f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PythonClient/airsim/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def get_length(self):
def to_numpy_array(self):
return np.array([self.x_val, self.y_val, self.z_val, self.w_val], dtype=np.float32)

def from_numpy_array(self, array):
def from_numpy_array(self, array):
return Quaternionr( array[0], array[1], array[2], array[3] )


Expand Down Expand Up @@ -394,4 +394,4 @@ class GnssReport(MsgpackMixin):
class GpsData(MsgpackMixin):
time_stamp = np.uint64(0)
gnss = GnssReport()
is_valid = False
is_valid = False

0 comments on commit b8d076f

Please sign in to comment.