This commit is contained in:
2025-07-06 12:02:45 -04:00
parent 31c7257b0a
commit 3e54c5b36e
8 changed files with 27 additions and 2 deletions

View File

@@ -62,6 +62,13 @@ Its intended to be sent from a transmitting device (like a remote control or
<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>
<div class="admonition-what-is-struct admonition">
<p class="admonition-title">What is struct?</p>
<p>In C programming, a struct (short for structure) is a user-defined data type that lets you group multiple variables of different types together under a
single name. Its like a container that holds related information — perfect for organizing data that logically belongs together. Structs are especially
powerful in systems programming, embedded projects, and when dealing with raw binary data — like parsing sensor input or transmitting control packets over
ESP-NOW.</p>
</div>
<section id="data-payload">
<h2>Data Payload<a class="headerlink" href="#data-payload" 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.