Translate absolute position to hall position method