This commit is contained in:
2025-01-05 03:00:08 -05:00
parent 65322c31c1
commit 3b6ce001af
13 changed files with 603 additions and 608 deletions

View File

@@ -119,8 +119,8 @@ static uint8_t s_led_state = 1;
ESP32-C3 SuperMini MAC: 34:b7:da:f9:33:8d
ESP32-C3 Breadboard MAC: e4:b0:63:17:9e:45
*/
#define ESPNOW_MAXDELAY 512
static QueueHandle_t espnow_queue;
//#define ESPNOW_MAXDELAY 512
//static QueueHandle_t espnow_queue;
static uint8_t broadcast_mac[ESP_NOW_ETH_ALEN] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
//static uint8_t broadcast_mac[ESP_NOW_ETH_ALEN] = {0x54, 0x32, 0x04, 0x46, 0x71, 0x80}; // MAC address of troubleshooting Dev board
//static uint8_t broadcast_mac[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45};
@@ -128,10 +128,10 @@ static uint8_t robot_mac[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E,
static uint8_t rc_mac[ESP_NOW_ETH_ALEN] = {0x34, 0xB7, 0xDA, 0xF9, 0x33, 0x8D}; // MAC address of Remote Control
static uint8_t espnow_seq[ESPNOW_DATA_MAX] = {0, 0};
//static uint8_t espnow_broadcast_mac[ESP_NOW_ETH_ALEN] = {};
typedef struct struct_message {
/*typedef struct struct_message {
char node[32];
uint8_t motor_a_pwm;
} struct_message;
} struct_message;*/
static int rc_x = 0, rc_y = 0;