A method of height control of a machine attachment during operation at different fore-and-aft pitch angles. A height controller receives a first signal magnitude generated by a height sensor disposed on the machine attachment. The first signal magnitude is relative to a first height of the machine attachment disposed at a first pitch angle. The angular degree change is determined when the machine attachment is moved from the first pitch angle to a second pitch angle. A corrected signal magnitude is determined by applying a correction factor to the first signal magnitude. The correction factor is a product of said angular degree change and a scale factor.