mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 20:40:52 +00:00
.
This commit is contained in:
@@ -20,6 +20,10 @@ 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;
|
||||
|
||||
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.
|
||||
|
||||
Struct Walkthrough
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
@@ -51,6 +51,9 @@ It’s intended to be sent from a transmitting device (like a remote control or
|
||||
<span class="p">}</span><span class="w"> </span><span class="n">__attribute__</span><span class="p">((</span><span class="n">packed</span><span class="p">))</span><span class="w"> </span><span class="n">sensors_data_t</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>When used with communication protocols like ESP-NOW, this struct is <strong>encoded</strong> into a byte stream, then
|
||||
<strong>transmitted</strong> at regular intervals or in response to user input, and finally
|
||||
<strong>decoded</strong> on the receiving end to control hardware.</p>
|
||||
<section id="struct-walkthrough">
|
||||
<h2>Struct Walkthrough<a class="headerlink" href="#struct-walkthrough" title="Link to this heading">¶</a></h2>
|
||||
<p><em>x_axis</em> and <em>y_axis</em> fields capture analog input from a joystick, determining direction and speed.
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user