Patent ID: 7498701

Claim:
A controller-integrated rotating electrical machine comprising: a rotating electrical machine main body; a power element mounted on a heat sink, disposed adjacent and in parallel to the rotating electrical machine main body in a longitudinal direction of a rotor shaft axis of the rotating electrical machine main body together with the heat sink and controlled to perform control of energization to the rotating electrical machine main body; a holding member disposed adjacent and in parallel to the power element and the heat sink in the longitudinal direction and at a side opposite to the rotating electrical machine main body; a control circuit disposed adjacent and in parallel to the power element and the heat sink in the longitudinal direction and at a side opposite to the power element and the heat sink and supported by the holding member to control the power element; a power line connecting the rotating electrical machine main body to the power element and having a straight line portion having a substantially straight line shape; and a current detector disposed at the straight line portion and detecting a current flowing between the power element and the rotating electrical machine main body via the power line at the straight line portion so that an output from the current detector is used by the control circuit for the energization control; wherein the current detector is provided with a C-shaped core which has a gap and a detection element disposed in the gap; the holding member is provided with a bus bar serving as a connection conductor connecting the power line and the power element; the straight line portion extends into the C-shaped core from a tip of the straight line portion, and the tip is connected to the bus bar, so that the rotating electrical machine main body is connected to the power element and the C-shaped core serves as a passage for the magnetic flux generated by the current flowing through the straight line portion, and the detection element produces an output corresponding to an intensity of the magnetic flux of the core.