A controller for a heart pump, the controller including a processing system for determining movement of an impeller within a cavity in a first axial direction, the cavity including at least one inlet and at least one outlet, and the impeller including vanes for urging fluid from the inlet to the outlet, causing a magnetic bearing to move the impeller in a second axial direction opposite the first axial direction, the magnetic bearing including at least one coil for controlling an axial position of the impeller within the cavity, determining an indicator indicative of the power used by the magnetic bearing and causing the magnetic bearing to control the axial position of the impeller in accordance with the indicator to thereby control a fluid flow between the inlet and the outlet.