legoEv3/ev3dev2/__pycache__/power.cpython-35.pyc



h^[@sQddlZejdkr'edddlmZGdddeZdS)    Nz"Must be using Python 3.4 or higher)DevicecseZdZdZdZdZdddddd    gZd
edfdd
ZeddZ    eddZ
eddZeddZeddZ
eddZeddZeddZS)PowerSupplyz
    A generic interface to read data from the system's power_supply class.
    Uses the built-in legoev3-battery if none is specified.
    Zpower_supply*_measured_current_measured_voltage_max_voltage_min_voltage_technology_typeNFcsr|dk    r||d<tt|j|j|||d|_d|_d|_d|_d|_d|_    dS)Naddress)
superr__init__SYSTEM_CLASS_NAMErrr    r
rr)selfr
Zname_patternZ
name_exactkwargs)    __class__//usr/lib/python3/dist-packages/ev3dev2/power.pyr3s
"                    zPowerSupply.__init__cCs"|j|jd\|_}|S)zS
        The measured current that the battery is supplying (in microamps)
        Zcurrent_now)get_attr_intr)rvaluerrrmeasured_current@szPowerSupply.measured_currentcCs"|j|jd\|_}|S)zT
        The measured voltage that the battery is supplying (in microvolts)
        Zvoltage_now)rr)rrrrrmeasured_voltageHszPowerSupply.measured_voltagecCs"|j|jd\|_}|S)z    
        Zvoltage_max_design)rr    )rrrrrmax_voltagePszPowerSupply.max_voltagecCs"|j|jd\|_}|S)z    
        Zvoltage_min_design)rr
)rrrrrmin_voltageWszPowerSupply.min_voltagecCs"|j|jd\|_}|S)z    
        
technology)get_attr_stringr)rrrrrr^szPowerSupply.technologycCs"|j|jd\|_}|S)z    
        type)rr)rrrrrreszPowerSupply.typecCs|jdS)zN
        The measured current that the battery is supplying (in amps)
        g.A)r)rrrr
measured_ampslszPowerSupply.measured_ampscCs|jdS)zO
        The measured voltage that the battery is supplying (in volts)
        g.A)r)rrrrmeasured_voltssszPowerSupply.measured_volts)__name__
__module____qualname____doc__rZSYSTEM_DEVICE_NAME_CONVENTION    __slots__rpropertyrrrrrrrr rr)rrr"s$    
r)rr)sysversion_infoSystemErrorZev3dev2rrrrrr<module>s