This commit is contained in:
2025-07-05 17:05:49 -04:00
parent d9f6dd7b3f
commit f6282b3fdf
8 changed files with 43 additions and 3 deletions

View File

@@ -1,2 +1,15 @@
DATA STRUCT
===========
===========
.. 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;