mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-09 21:21:12 +00:00
.
This commit is contained in:
@@ -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 vehicle’s operation. It’s 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 vehicle’s operation. It’s 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>
|
||||
|
Reference in New Issue
Block a user