mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 17:42:36 +00:00
ESP-NOW + Wi-Fi
This commit is contained in:
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/config.h.E4C2AF7142660ACB.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/config.h.E4C2AF7142660ACB.idx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/i2cdev.c.C057686BF6327F49.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/i2cdev.c.C057686BF6327F49.idx
Normal file
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/i2cdev.h.15EDA02B7D704BF2.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/i2cdev.h.15EDA02B7D704BF2.idx
Normal file
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/ina219.c.1391EE85F95074BD.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/ina219.c.1391EE85F95074BD.idx
Normal file
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/ina219.h.056789E52F84C450.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/ina219.h.056789E52F84C450.idx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/mqtt.c.2D8C45C8F90007D2.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/mqtt.c.2D8C45C8F90007D2.idx
Normal file
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/mqtt.h.C8F48C5E35E46898.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/mqtt.h.C8F48C5E35E46898.idx
Normal file
Binary file not shown.
BIN
ESP-IDF_Robot/.cache/clangd/index/rc.h.F44150633EF1A13E.idx
Normal file
BIN
ESP-IDF_Robot/.cache/clangd/index/rc.h.F44150633EF1A13E.idx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
||||
8bd3859376c97ee848afeabada7087bfe3ead042
|
||||
ad42b15d738eb3ed9047d95cf8cc44381ae4beb2
|
||||
|
@@ -306,6 +306,7 @@ static void wifi_init()
|
||||
},
|
||||
};
|
||||
ESP_ERROR_CHECK (esp_wifi_set_config(WIFI_IF_STA, &wifi_config));
|
||||
ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));
|
||||
ESP_ERROR_CHECK( esp_wifi_start());
|
||||
ESP_ERROR_CHECK( esp_wifi_connect() );
|
||||
}
|
||||
@@ -332,8 +333,8 @@ static void rc_task (void *arg) {
|
||||
while (true) {
|
||||
update_pwm (rc_x, rc_y);
|
||||
//ESP_LOGI("x,y", "( %d, %d ) [ %d, %d] ", rc_x, rc_y, x, y);
|
||||
vTaskDelay (100 / portTICK_PERIOD_MS); // Determines responsiveness
|
||||
//vTaskDelay (1000 / portTICK_PERIOD_MS);
|
||||
vTaskDelay (100 / portTICK_PERIOD_MS); // Determines responsiveness
|
||||
//vTaskDelay (1000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
static void display_xy() {
|
||||
@@ -370,7 +371,7 @@ void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_
|
||||
memcpy(&buf, data, sizeof(buf)); // Write buffer into the struct
|
||||
rc_x = buf.x_axis; // Save joystic x-axis value
|
||||
rc_y = buf.y_axis; // Save joystic y-axis value
|
||||
update_pwm(rc_x, rc_y);
|
||||
update_pwm(rc_x, rc_y);
|
||||
}
|
||||
|
||||
void ultrasonic_task (void *arg) {
|
||||
|
Reference in New Issue
Block a user