The code used in my final video for the self-balancing robot.