Created getter and setter methods for PWM, encoders, sensors and compass.