From a2c3a2a720986707ae469e34e6427e71db9d51e6 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 3 Jan 2025 02:12:12 -0500 Subject: [PATCH] ESP32-C3 RC --- ESP-IDF_Robot_RC/main/espnow_example.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ESP-IDF_Robot_RC/main/espnow_example.h b/ESP-IDF_Robot_RC/main/espnow_example.h index 563730bec..0b78eaa31 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example.h +++ b/ESP-IDF_Robot_RC/main/espnow_example.h @@ -67,12 +67,15 @@ typedef struct { } __attribute__((packed)) example_espnow_data_t; typedef struct { - uint8_t type; // Broadcast or unicast ESPNOW data. - uint8_t state; // Indicate that if has received broadcast ESPNOW data or not. uint16_t seq_num; // Sequence number of ESPNOW data. uint16_t crc; // CRC16 value of ESPNOW data. - uint32_t magic; // Magic number which is used to determine which device to send unicast ESPNOW data. - uint8_t payload[2]; // Real payload of ESPNOW data. + uint8_t x-axis; + uint8_t y-axis; + bool nav_bttn; + uint8_t motor1_rpm_pcm; + uint8_t motor2_rpm_pcm; + uint8_t motor3_rpm_pcm; + uint8_t motor4_rpm_pcm; } __attribute__((packed)) sensors_data_t; /* Parameters of sending ESPNOW data. */