#Charge controller

def control(pow_mod,pow_load):
    '''
    returns power into or out from battery
    sign convention: + is in; - is out
    '''
    return -pow_load-pow_mod
bac0a759e020bf6fb06a7787b0a6e7150d8ff825
<mask token>

def control(pow_mod, pow_load):
    """
    returns power into or out from battery
    sign convention: + is in; - is out
    """
    return -pow_load - pow_mod

#Charge controller

def control(pow_mod,pow_load):
    '''
    returns power into or out from battery
    sign convention: + is in; - is out
    '''
    return -pow_load-pow_mod