The height of the pedal off the ground can be modeled by a cosine function
Let, us try some scenarios, if the pedal is at the 3 oclock position, the angle = 0
h= 18-7cos90 = 18 - 0 = 18 inches.
If the pedal is at 12 oclock, the angle is pi/2 or 90 degrees, and
h= 18 - 7cos180 = 18+7 = 25 inches.