<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_params(cls, sensor_type, formatted_params, major=DEFAULT_KATCP_MAJOR):
 """Parse KATCP formatted parameters into Python values. Parameters sensor_type : Sensor type constant The type of sensor the parameters are for. formatted_params : list of strings The formatted parameters that should be parsed. major : int Major version of KATCP to use when interpreting types. Defaults to latest implemented KATCP version. Returns ------- params : list of objects The parsed parameters. """

        typeclass, _value = cls.SENSOR_TYPES[sensor_type]
        if sensor_type == cls.DISCRETE:
            kattype = typeclass([])
        else:
            kattype = typeclass()
        return [kattype.decode(x, major) for x in formatted_params]