mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 09:16:08 +00:00
manual
This commit is contained in:
@@ -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;
|
||||
} __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
|
||||
**transmitted** at regular intervals or in response to user input, and finally
|
||||
**decoded** on the receiving end to control hardware.
|
||||
|
Reference in New Issue
Block a user