ESP-IDF Robot Controls

This commit is contained in:
2024-12-28 19:12:10 -05:00
parent b966d9fa40
commit 6e474ea7ed
7 changed files with 11 additions and 3 deletions

View File

@@ -1 +1 @@
5b612126596a95ae27a239bed81cf3d1 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/ESP-IDF_Robot.bin
8de6d874d14a260d953a0a25f2cf0b33 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/ESP-IDF_Robot.bin

View File

@@ -953,3 +953,10 @@
501 702 1735431101798205389 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader-prefix/src/bootloader-stamp/bootloader-done 608485c817a7b49c
373 1158 1735431101482207524 esp-idf/main/CMakeFiles/__idf_main.dir/blink_example_main.c.obj 4dd51763bd3cdffe
1161 1207 1735431102270202250 esp-idf/main/libmain.a e31ee7c6d085bb4e
1211 18821 1735431119838113920 esp-idf/esp_system/ld/sections.ld fac8ddf2708b76fe
1211 18821 1735431119838113920 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/esp-idf/esp_system/ld/sections.ld fac8ddf2708b76fe
18821 20597 1735431119930113592 ESP-IDF_Robot.elf 7db8bbdc5ef5141f
20597 21275 1735431122381105519 .bin_timestamp 15712c9999fc04aa
20597 21275 1735431122381105519 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/.bin_timestamp 15712c9999fc04aa
21277 21391 1735431122386105503 esp-idf/esptool_py/CMakeFiles/app_check_size 1b7369a06a6f9d53
21277 21391 1735431122386105503 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/esp-idf/esptool_py/CMakeFiles/app_check_size 1b7369a06a6f9d53

View File

@@ -868,7 +868,8 @@ void app_main(void)
//update_pwm(var);
ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, var);
ledc_update_duty(LEDC_MODE, LEDC_CHANNEL);
ESP_LOGI(TAG, "Duty cycle: %d", var);
ESP_LOGW(TAG, "Duty cycle: %d", var);
}
//ESP_ERROR_CHECK(adc_continuous_stop(handle));

View File

@@ -8,7 +8,7 @@
4095 0
0 -4095
*/
static int interpolate_raw_measure (int min, int max, int raw) {
static int interpolate_raw_val (int min, int max, int raw) {
int x;
x = raw - 8191;