From d9f6dd7b3f5fcd28515a4ec8f74efb87dcd2c96b Mon Sep 17 00:00:00 2001 From: Alexandre Bobkov Date: Sat, 5 Jul 2025 17:05:43 -0400 Subject: [PATCH] . --- ESP-IDF_Robot/tutorial/docs/source/data.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ESP-IDF_Robot/tutorial/docs/source/data.rst b/ESP-IDF_Robot/tutorial/docs/source/data.rst index 48d9b0bc5..a1e953de3 100644 --- a/ESP-IDF_Robot/tutorial/docs/source/data.rst +++ b/ESP-IDF_Robot/tutorial/docs/source/data.rst @@ -1,4 +1,15 @@ DATA STRUCT =========== -.. code-block:: c \ No newline at end of file +.. code-block:: c + + typedef struct { + int x_axis; // Joystick x-position + int y_axis; // Joystick y-position + bool nav_bttn; // Joystick push button + bool led; // LED ON/OFF state + uint8_t motor1_rpm_pwm; // PWMs for 4 DC motors + uint8_t motor2_rpm_pwm; + uint8_t motor3_rpm_pwm; + uint8_t motor4_rpm_pwm; + } __attribute__((packed)) sensors_data_t; \ No newline at end of file