Massive improvements to pendulum class, working to get rid of polling
(as much as possible) and trying to get latency down.