def __init__(self, x=0, y=0, z=0, xy=0, xz=0, yz=0):
     """Initializes the PositionError object."""
     XYZ.__init__(self, x, y, z)
     self.xy = xy
     self.xz = xz
     self.yz = yz
     self.data = [x, y, z, xy, xz, yz]
 def load(self, data, convert=True):
     for i in range(len(data)):
         data[i] = float(data[i])
     XYZ.load(self, data[1:4], convert)
     self.data = data
     if convert:
         self.w = data[0] / self.physical_convert
     else:
         self.w = data[0]
 def load(self, data):
     XYZ.load(self, data[0:3])
     self.xy = data[3] / self.physical_convert
     self.xz = data[4] / self.physical_convert
     self.yz = data[5] / self.physical_convert
 def __init__(self, w=0, x=0, y=0, z=0):
     """Initializes the Quaternion object."""
     XYZ.__init__(self, x, y, z)
     self.data = [w, x, y, z]
     self.w = w
Example #5
0
 def __init__(self, data=[0] * 24):
     """Initializes the RawSensorData object"""
     XYZ.__init__(self, data)