def __init__(self, voltage, current, level):
        self.voltage = voltage / 1000.0
        if current == -1:
            self.current = None
        else:
            self.current = current / 100.0
        if level == -1:
            self.level = None
        else:
            self.level = level
dataset/ETHPy150Open dronekit/dronekit-python/dronekit/__init__.py/Battery.__init__/original