clearpath_config.platform.battery module

class clearpath_config.platform.battery.BatteryConfig(config: dict = {}, model: str = 'unknown', configuration: str = 'unknown', launch_args: dict = {})

Bases: BaseConfig

BATTERY = 'battery'
CONFIGURATION = 'configuration'
DEFAULTS = {'configuration': 'unknown', 'launch_args': {}, 'model': 'unknown'}
DTM8A31 = '8A31DTM'
ES20_12C = 'ES20_12C'
HE2613 = 'HE2613'
KEYS = {'configuration': 'battery.configuration', 'launch_args': 'battery.launch_args', 'model': 'battery.model'}
LAUNCH_ARGS = 'launch_args'
MODEL = 'model'
NEC_ALM12V35 = 'NEC_ALM12V35'
PH3054 = 'PH3054'
RB20 = 'RB20'
S1P1 = 'S1P1'
S1P2 = 'S1P2'
S1P3 = 'S1P3'
S1P4 = 'S1P4'
S2P1 = 'S2P1'
S4P1 = 'S4P1'
S4P3 = 'S4P3'
TEMPLATE = {'battery': {'configuration': 'configuration', 'launch_args': 'launch_args', 'model': 'model'}}
TLV1222 = 'TLV1222'
U1_35 = 'U1_35'
UNKNOWN = 'unknown'
VALENCE_U24_12XP = 'VALENCE_U24_12XP'
VALENCE_U27_12XP = 'VALENCE_U27_12XP'
VALID = {'a200': {'ES20_12C': ['S2P1'], 'HE2613': ['S1P3', 'S1P4']}, 'dd100': {'PH3054': ['S1P1'], 'TLV1222': ['S1P1']}, 'dd150': {'RB20': ['S1P1'], 'TLV1222': ['S1P1']}, 'do100': {'PH3054': ['S1P1', 'S1P2', 'S1P3'], 'TLV1222': ['S1P1', 'S1P2', 'S1P3']}, 'do150': {'RB20': ['S1P1', 'S1P2', 'S1P3'], 'TLV1222': ['S1P1', 'S1P2', 'S1P3']}, 'generic': {'unknown': ['unknown']}, 'j100': {'HE2613': ['S1P1']}, 'r100': {'8A31DTM': ['S1P2']}, 'w200': {'NEC_ALM12V35': ['S4P3'], 'U1_35': ['S4P3'], 'VALENCE_U24_12XP': ['S4P1'], 'VALENCE_U27_12XP': ['S4P1']}}
property configuration: str
property launch_args: dict
property model: str
update(serial_number: bool = False) None

Update any variables based on inputs.

update_defaults() None