Fixed X axis bearing bug with a kludge.
Re-add const for C++ compatibility.