added the stuff from imagePID and the encoders