Returns the charging current, in amps, or 0.0 of not charging

def getChargingCurrent(self):
    """Returns the charging current, in amps, or 0.0 of not charging"""
    command = '$GG'
    currentAndVoltage = self.sendCommand(command)
    amps = float(currentAndVoltage[1])/1000
    return amps