This commit is contained in:
2025-08-03 03:16:32 -04:00
parent 671f15d11b
commit b5d438dde3
2 changed files with 10 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
"idf.toolsPath": "/home/alex/.espressif",
"idf.port": "/dev/ttyACM0",
"idf.flashType": "UART",
"idf.pythonInstallPath": "/usr/bin/python3",
"idf.pythonInstallPath": "c:\\Users\\alex\\esp\\tools\\idf-python\\3.11.2\\python.exe",
"idf.espIdfPathWin": "C:\\Users\\alex\\esp\\v5.4\\esp-idf",
"idf.toolsPathWin": "c:\\Users\\alex\\esp\\",
"idfWeb.flashBaudRate": 115200

View File

@@ -89,6 +89,15 @@ static void update_pwm (int rc_x, int rc_y) {
y = y_sum / sample;
s++;*/
/*
(+, +0) (+, +) (+0, +)
(-, +) (0, 0) (+, -)
(-, -0) (-, -) (-0, -)
if (1024 < x < 2048 && 1024 < y < 2048) {
}*/
// Turn Left
if (x == 8190 && y == -8190) {
m.motor1_rpm_pcm = 6172;