A multigroup, multiphase rotary electric machine control device, which is configured to control a multigroup, multiphase rotary electric machine including different groups of windings arranged at positions in mechanical spatial phase differing by 360/(N+1) (N is an integer of 1 or more) degrees, the multigroup, multiphase rotary electric machine control device comprising:
- a control target calculator configured to calculate an initial current command value of each phase based on a torque command value;
- a correction coefficient calculator configured to calculate a per-group correction coefficient corresponding to each group from a spatial mode M (M is 0 or a positive integer) of an electromagnetic force caused by magnetic flux density variation with respect to a rotational periodicity at the time of rotation of the multigroup, multiphase rotary electric machine;
- and
- a current command value corrector configured to calculate a current command value of the each phase, which is corrected based on the initial current command value and the per-group correction coefficient.