X axis motor balancing added

v1 motor control algorithm for the x axis only