def __init__(self, para=GpsPara()): SensorBase.__init__(self) self.sensorType = SensorType.gps self.para = para self._posMea = np.zeros(3) # the history data is used to implement the latency self._posHisReal = queue.Queue()
def __init__(self): SensorBase.__init__(self) # the directions in which the player can # climbe at that thing. Vertical for example # means the player can climb up and down but # not left or right self.direction = "vertical" self.setFly = True
def __init__(self, imu_para=mpu6050): """ :param imu_para: """ SensorBase.__init__(self) self.para = imu_para self.sensorType = SensorType.imu self.angularMea = np.zeros(3) self.gyroBias = (1 * np.random.random(3) - 0.5) * self.para.gyroZroToleranceInit self.accMea = np.zeros(3) self.accBias = (1 * np.random.random(3) - 0.5) * self.para.accZroToleranceInit
def __init__(self): SensorBase.__init__(self)
def __init__(self): SensorBase.__init__(self) self.translated = False self.message = "" self.messageShown = False