An impulse followed by a drift
The plus sign in front of the sine comes from a cosine kick potential, with unit moment of inertia and unit time between kicks. Internally, angle and momentum are stored divided by two pi. Each sample is taken just before the next kick.