Added angle sensor class to the Pi code.