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

@@ -33,6 +33,13 @@ When used with communication protocols like ESP-NOW, this struct is **encoded**
**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.
.. admonition:: What is struct?
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. It's 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.
Data Payload Data Payload
------------ ------------

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 <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>transmitted</strong> at regular intervals or in response to user input, and finally
<strong>decoded</strong> on the receiving end to control hardware.</p> <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"> <section id="data-payload">
<h2>Data Payload<a class="headerlink" href="#data-payload" title="Link to this heading"></a></h2> <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. <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

View File

@@ -1,4 +1,4 @@
# Sphinx build info version 1 # Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. # This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ba67f409535e2ffeeecb03b6456d3399 config: dc1377b237358fc9e4c72c13076dab1a
tags: 62a1e7829a13fc7881b6498c52484ec0 tags: 62a1e7829a13fc7881b6498c52484ec0

View File

@@ -898,6 +898,17 @@ It&rsquo;s intended to be sent from a transmitting device (like a remote control
</strong> </strong>
on the receiving end to control hardware. on the receiving end to control hardware.
</p> </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. It&rsquo;s like a container that holds related information &mdash; perfect for organizing data that logically belongs together. Structs are especially
powerful in systems programming, embedded projects, and when dealing with raw binary data &mdash; like parsing sensor input or transmitting control packets over
ESP-NOW.
</p>
</div>
<section id="data-payload"> <section id="data-payload">
<h3> <h3>
Data Payload Data Payload