mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-23 15:47:29 +00:00
ESP-IDF Robot Controls
This commit is contained in:
@@ -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
|
||||||
|
@@ -953,3 +953,10 @@
|
|||||||
501 702 1735431101798205389 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader-prefix/src/bootloader-stamp/bootloader-done 608485c817a7b49c
|
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
|
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
|
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
|
||||||
|
Binary file not shown.
Binary file not shown.
@@ -868,7 +868,8 @@ void app_main(void)
|
|||||||
//update_pwm(var);
|
//update_pwm(var);
|
||||||
ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, var);
|
ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, var);
|
||||||
ledc_update_duty(LEDC_MODE, LEDC_CHANNEL);
|
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));
|
//ESP_ERROR_CHECK(adc_continuous_stop(handle));
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
4095 0
|
4095 0
|
||||||
0 -4095
|
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;
|
int x;
|
||||||
|
|
||||||
x = raw - 8191;
|
x = raw - 8191;
|
||||||
|
Reference in New Issue
Block a user