Also I imagine they are using a bog standard Kalman filter[1].
0. https://en.wikipedia.org/wiki/Phase-locked_loop
1. https://en.wikipedia.org/wiki/Kalman_filter