diff --git a/ESP-IDF_Robot/.vscode/settings.json b/ESP-IDF_Robot/.vscode/settings.json index f093d5235..723edc3cb 100644 --- a/ESP-IDF_Robot/.vscode/settings.json +++ b/ESP-IDF_Robot/.vscode/settings.json @@ -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 diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index 0f9735a9c..ad9fc9607 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -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;