descriptions

This commit is contained in:
2025-07-01 02:00:51 -04:00
parent c2cc5f6063
commit 97a9389e1f

View File

@@ -67,15 +67,16 @@ The *struct* for storing motors PWM values.
The function for updating motors' PWM values. The function for updating motors' PWM values.
.. code-block:: c .. code-block:: c
// Function to send data to the receiver // Function to send data to the receiver
void sendData (void) { void sendData (void) {
sensors_data_t buffer; // Declare data struct sensors_data_t buffer; // Declare data struct
buffer.crc = 0; buffer.crc = 0;
buffer.x_axis = 240; buffer.x_axis = 0;
buffer.y_axis = 256; buffer.y_axis = 0;
buffer.nav_bttn = 0; buffer.nav_bttn = 0;
buffer.motor1_rpm_pwm = 10; buffer.motor1_rpm_pwm = 0;
buffer.motor2_rpm_pwm = 0; buffer.motor2_rpm_pwm = 0;
buffer.motor3_rpm_pwm = 0; buffer.motor3_rpm_pwm = 0;
buffer.motor4_rpm_pwm = 0; buffer.motor4_rpm_pwm = 0;