The invention relates to an internal combustion engine comprising a
crankshaft, a camshaft and an adjusting device, which is used to adjust
the phase position of the camshaft in relation to the crankshaft. The
phase position is determined in accordance with a detected crankshaft
angle and a recorded camshaft angle. A filter coefficient of a filter is
determined in accordance with the amplitude of an oscillation of the
phase position and the modification of said phase position. A filtered
phase position of the determined phase position is calculated using the
filter.