Patent attributes
A drive unit includes a rotating electrical machine; a rotation sensor that detects a rotational position of a rotor of the rotating electrical machine, and a storage medium. In an inspecting step of measuring a counter electromotive force by mechanically driving the rotating electrical machine after the rotating electrical machine and the rotation sensor are assembled together, positional error information of the rotation sensor obtained based on information of the counter electromotive force and output information from the rotation sensor is stored in the storage medium. The storage medium is integrally provided to the drive unit in such a state that the storage medium is readable upon assembling a control device that controls the rotating electrical machine.