A method for determining a first distance and a second distance of an object from an active optical sensor system by the sensor system, wherein an initial pulse sequence with an initial frequency spectrum, which corresponds to a frequency comb, is generated by a laser source, wherein the frequency comb comprises a plurality of modes with a respective mode frequency, wherein - a first pulse sequence with a first frequency spectrum, which corresponds to a first part of the frequency comb, and a first reference pulse sequence with the first frequency spectrum are generated based on the initial pulse sequence; - a second pulse sequence with a second frequency spectrum, which corresponds to a second part of the frequency comb different from the first part, and a second reference pulse sequence with the second frequency spectrum are generated based on the initial pulse sequence; - the initial pulse sequence is filtered frequency-dependently to generate a first intermediate pulse sequence with the first frequency spectrum and a second intermediate pulse sequence with the second frequency spectrum; - the first intermediate pulse sequence is split into the first pulse sequence and the first reference pulse sequence; and - the second intermediate pulse sequence is split into the second pulse sequence and the second reference pulse sequence - the first pulse sequence and the second pulse sequence are emitted towards the object; - the first distance of the object from the sensor system is determined by at least one first heterodyne measurement based on the first reference pulse sequence and portions of the first pulse sequence reflected by the object; and - the second distance of the object from the sensor system is determined by at least one second heterodyne measurement based on the second reference pulse sequence and portions of the second pulse sequence reflected by the object. - a first pulse sequence with a first frequency spectrum, which corresponds to a first part of the frequency comb, and a first reference pulse sequence with the first frequency spectrum are generated based on the initial pulse sequence; - a second pulse sequence with a second frequency spectrum, which corresponds to a second part of the frequency comb different from the first part, and a second reference pulse sequence with the second frequency spectrum are generated based on the initial pulse sequence; - the initial pulse sequence is filtered frequency-dependently to generate a first intermediate pulse sequence with the first frequency spectrum and a second intermediate pulse sequence with the second frequency spectrum; - the first intermediate pulse sequence is split into the first pulse sequence and the first reference pulse sequence; and - the second intermediate pulse sequence is split into the second pulse sequence and the second reference pulse sequence - the first pulse sequence and the second pulse sequence are emitted towards the object; - the first distance of the object from the sensor system is determined by at least one first heterodyne measurement based on the first reference pulse sequence and portions of the first pulse sequence reflected by the object; and - the second distance of the object from the sensor system is determined by at least one second heterodyne measurement based on the second reference pulse sequence and portions of the second pulse sequence reflected by the object.