def updateBatteryVoltage(self, batteryVoltage):
    with self.lock:
        self.batteryVoltage = batteryVoltage
        self.lastMessageTime = float(time.time())
def updateBatteryVoltage(self, batteryVoltage):
    with self.lock:
        self.batteryVoltage = batteryVoltage
        self.lastMessageTime = float(time.time())