recalibrate some motor functions and add orientation logic

whooooooot