浏览代码

Unflip the hardcoded flip of the Y axis

Alex Voinea 3 年之前
父节点
当前提交
8b9bb23652
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Firmware/pat9125.cpp

+ 2 - 2
Firmware/pat9125.cpp

@@ -201,7 +201,7 @@ uint8_t pat9125_update(void)
 			if (iDX & 0x800) iDX -= 4096;
 			if (iDY & 0x800) iDY -= 4096;
 			pat9125_x += iDX;
-			pat9125_y -= iDY; //negative number, because direction switching does not work
+			pat9125_y += iDY;
 		}
 		return 1;
 	}
@@ -221,7 +221,7 @@ uint8_t pat9125_update_y(void)
 			if (pat9125_PID1 == 0xff) return 0;
 			int16_t iDY = ucYL | ((ucXYH << 8) & 0xf00);
 			if (iDY & 0x800) iDY -= 4096;
-			pat9125_y -= iDY; //negative number, because direction switching does not work
+			pat9125_y += iDY;
 		}
 		return 1;
 	}