This commit is contained in:
2025-07-06 12:06:01 -04:00
parent a95fa99baf
commit 199301c560
7 changed files with 8 additions and 8 deletions

View File

@@ -37,8 +37,8 @@
<h1>DATA STRUCTS<a class="headerlink" href="#data-structs" title="Link to this heading"></a></h1>
<p>The struct serves as the data payload for sending control signals from the transmitting device to the receiver using ESP-NOW.
In addition, it may contain additional data such as telemetry, battery status, etc. The <em>sensors_data_t</em> struct encapsulates all control commands and sensor states
relevant to the vehicles operation. Its intended to be sent from a transmitting device (like a remote control or master controller) to a receiver
(such as a microcontroller onboard the vehicle).</p>
relevant to the vehicles operation. Its intended to be sent from a transmitting device (like a remote control) to a receiver
(such as a microcontroller on board of the vehicle).</p>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x_axis</span><span class="p">;</span><span class="w"> </span><span class="c1">// Joystick x-position</span>
<span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y_axis</span><span class="p">;</span><span class="w"> </span><span class="c1">// Joystick y-position</span>