ESP-IDF Robot Controls

This commit is contained in:
2024-12-31 03:58:06 -05:00
parent cb984994fd
commit bd8a4dceac
7 changed files with 5460 additions and 4 deletions

View File

View File

@@ -1 +1 @@
be8c79f0954e96a4d0e4c99e473b2cc0824cf0dd cb984994fd86b659b0425d1ab7dee6ef50424b68

View File

@@ -0,0 +1,181 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Ninja" Generator, CMake Version 3.30
# This file contains all the rules used to get the outputs files
# built from the input files.
# It is included in the main 'build.ninja'.
# =============================================================================
# Project: ESP-IDF_Robot
# Configurations:
# =============================================================================
# =============================================================================
#############################################
# Rule for compiling C files.
rule C_COMPILER__ESP-IDF_Robot.2eelf_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking CXX executable.
rule CXX_EXECUTABLE_LINKER__ESP-IDF_Robot.2eelf_
command = $PRE_LINK && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-g++ $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
description = Linking CXX executable $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for running custom commands.
rule CUSTOM_COMMAND
command = $COMMAND
description = $DESC
#############################################
# Rule for compiling ASM files.
rule ASM_COMPILER____idf_riscv_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building ASM object $out
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_riscv_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking C static library.
rule C_STATIC_LIBRARY_LINKER____idf_riscv_
command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar qc $TARGET_FILE $LINK_FLAGS $in && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ranlib $TARGET_FILE && $POST_BUILD
description = Linking C static library $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_esp_ringbuf_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking C static library.
rule C_STATIC_LIBRARY_LINKER____idf_esp_ringbuf_
command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar qc $TARGET_FILE $LINK_FLAGS $in && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ranlib $TARGET_FILE && $POST_BUILD
description = Linking C static library $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_efuse_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking C static library.
rule C_STATIC_LIBRARY_LINKER____idf_efuse_
command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar qc $TARGET_FILE $LINK_FLAGS $in && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ranlib $TARGET_FILE && $POST_BUILD
description = Linking C static library $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_esp_mm_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking C static library.
rule C_STATIC_LIBRARY_LINKER____idf_esp_mm_
command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar qc $TARGET_FILE $LINK_FLAGS $in && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ranlib $TARGET_FILE && $POST_BUILD
description = Linking C static library $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_driver_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking C static library.
rule C_STATIC_LIBRARY_LINKER____idf_driver_
command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar qc $TARGET_FILE $LINK_FLAGS $in && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ranlib $TARGET_FILE && $POST_BUILD
description = Linking C static library $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_esp_pm_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building C object $out
#############################################
# Rule for linking C static library.
rule C_STATIC_LIBRARY_LINKER____idf_esp_pm_
command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar qc $TARGET_FILE $LINK_FLAGS $in && /home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ranlib $TARGET_FILE && $POST_BUILD
description = Linking C static library $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling ASM files.
rule ASM_COMPILER____idf_mbedtls_unscanned_
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building ASM object $out
#############################################
# Rule for compiling C files.
rule C_COMPILER____idf_mbedtls_unscanned_
depfile = $DEP_FILE
deps = gcc
command

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{ {
"version": "1.1", "version": "1.1",
"project_name": "ESP-IDF_Robot", "project_name": "ESP-IDF_Robot",
"project_version": "ESP32-Node_Switch-v2.7-1614-gbe8c79f0-dirty", "project_version": "ESP32-Node_Switch-v2.7-1615-gcb984994-dirty",
"project_path": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot", "project_path": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot",
"idf_path": "/home/abobkov/esp/esp-idf", "idf_path": "/home/abobkov/esp/esp-idf",
"build_dir": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build", "build_dir": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build",

View File

@@ -365,9 +365,9 @@ static void ledc_init (void) {
//ESP_ERROR_CHECK(ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, LEDC_DUTY)); //ESP_ERROR_CHECK(ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, LEDC_DUTY));
//ESP_ERROR_CHECK(ledc_update_duty(LEDC_MODE, LEDC_CHANNEL));*/ //ESP_ERROR_CHECK(ledc_update_duty(LEDC_MODE, LEDC_CHANNEL));*/
} }
static void update_pwm (uint8_t pwm) { /*static void update_pwm (uint8_t pwm) {
ESP_ERROR_CHECK(ledc_set_duty_and_update(LEDC_MODE, LEDC_CHANNEL, pwm, 0)); ESP_ERROR_CHECK(ledc_set_duty_and_update(LEDC_MODE, LEDC_CHANNEL, pwm, 0));
} }*/
/* ESP-NOW */ /* ESP-NOW */
// Wi-Fi should start before using ESP-NOW // Wi-Fi should start before using ESP-NOW