This commit is contained in:
2025-01-04 23:22:29 -05:00
parent 2c2bceaf84
commit e8efed9c54

View File

@@ -159,6 +159,8 @@ typedef struct struct_message {
uint8_t motor_a_pwm;
} struct_message;
static int x = 0, y = 0;
uint8_t broadcastAddress[] = {};
struct_message controlData;
esp_now_peer_info_t peerInfo;
@@ -812,6 +814,8 @@ void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_
ESP_LOGI(TAG, "PCM 2: 0x%04X", buf.motor2_rpm_pcm);
ESP_LOGI(TAG, "PCM 3: 0x%04X", buf.motor3_rpm_pcm);
ESP_LOGI(TAG, "PCM 4: 0x%04X", buf.motor4_rpm_pcm);
x = buf.x_axis;
y = buf.y_axis;
}