fix wrong rotation direction in hardware