motors_init()

This commit is contained in:
2025-08-05 07:26:59 -04:00
parent 77ab808358
commit 3dd9b66b28
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -456,6 +456,9 @@ void app_main(void)
}
ESP_ERROR_CHECK(ret);
// MOTORS
motors_init();
// Use wifi_init() for ESP-NOW and Wi-Fi setup
wifi_init();
@@ -511,9 +514,6 @@ void app_main(void)
rc_adc_init();
xTaskCreate(rc_task, "RC", 2048, NULL, 5, NULL);
// MOTORS
motors_init();
ESP_ERROR_CHECK(i2cdev_init());
xTaskCreate(task, "test", configMINIMAL_STACK_SIZE * 8, NULL, 5, NULL);
xTaskCreate(display_xy, "coordinates", configMINIMAL_STACK_SIZE * 8, NULL, 4, NULL);