There shouldn’t be any calibration needed for a brushless motor after reassembly. A grinding noise is more likely something being misaligned or not fully seated, such as the motor in the housing, gearbox, shims, or bearings. I’d also check the pinion and gear mesh carefully for debris or damage...