https://9dok.org/document/qmj8xg07-friction-effects-stability-digitally-controlled-pendulum.html