From 7aa22c82c727a2feef1208f10b4f85d4244f96f7 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Sat, 4 Jan 2025 23:10:14 -0500 Subject: [PATCH] RC --- ESP-IDF_Robot_RC/main/espnow_example_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ESP-IDF_Robot_RC/main/espnow_example_main.c b/ESP-IDF_Robot_RC/main/espnow_example_main.c index 795e0add0..0f80c16f6 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example_main.c +++ b/ESP-IDF_Robot_RC/main/espnow_example_main.c @@ -99,6 +99,8 @@ void sendData (void) { get_joystick_xy(&x, &y); ESP_LOGI("(x, y)", "[ %d, %d ]", x, y); + buffer.x_axis = x; + buffer.y_axis = y; // Display brief summary of data being sent. ESP_LOGI(TAG, "Joystick (x,y) position ( %d, %d )", buffer.x_axis, buffer.y_axis);