Tweaks to encoders and gyro mobility code