This commit is contained in:
2025-07-05 23:55:06 -04:00
parent ebef74d46b
commit db67bd53fc

View File

@@ -20,6 +20,15 @@ It's intended to be sent from a transmitting device (like a remote control or ma
uint8_t motor4_rpm_pwm; uint8_t motor4_rpm_pwm;
} __attribute__((packed)) sensors_data_t; } __attribute__((packed)) sensors_data_t;
.. code-block:: c
struct motors_rpm {
int motor1_rpm_pwm;
int motor2_rpm_pwm;
int motor3_rpm_pwm;
int motor4_rpm_pwm;
};
When used with communication protocols like ESP-NOW, this struct is **encoded** into a byte stream, then When used with communication protocols like ESP-NOW, this struct is **encoded** into a byte stream, then
**transmitted** at regular intervals or in response to user input, and finally **transmitted** at regular intervals or in response to user input, and finally
**decoded** on the receiving end to control hardware. **decoded** on the receiving end to control hardware.