RC Robot Tutorial

This commit is contained in:
2025-07-21 01:43:25 -04:00
parent 2c8683bd4a
commit aacfdd8ec5
3 changed files with 5 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ The following images illustrate various PWM duty cycles registered by oscillosco
+------+-----+---------------------------------------------------------+----------------+
| 1 | 15 | Joystick y-axis | ADC1_CH1 |
+------+-----+---------------------------------------------------------+----------------+
| 8 | 5 | Joystick push button | |
| 8 | 5 | Joystick push button | NC |
+------+-----+---------------------------------------------------------+----------------+
| 6 | 4 | PWM for clockwise rotation of left-side motors | LEDC_CHANNEL_1 |
+------+-----+---------------------------------------------------------+----------------+
@@ -157,7 +157,7 @@ The function for updating motors' PWM values.
ESP_LOGW("ESP-NOW", "Data was sent.");
}
The onDataReceived() and onDataSent() are two call-bacl functions that get evoked on each corresponding event.
The onDataReceived() and onDataSent() are two call-back functions that get evoked on each corresponding event.
.. code-block:: c

View File

@@ -164,7 +164,7 @@ Right DC Motors spin clockwise</p></td>
<tr class="row-even"><td><p>8</p></td>
<td><p>5</p></td>
<td><p>Joystick push button</p></td>
<td></td>
<td><p>NC</p></td>
</tr>
<tr class="row-odd"><td><p>6</p></td>
<td><p>4</p></td>
@@ -233,7 +233,7 @@ Right DC Motors spin clockwise</p></td>
<span class="p">}</span>
</pre></div>
</div>
<p>The onDataReceived() and onDataSent() are two call-bacl functions that get evoked on each corresponding event.</p>
<p>The onDataReceived() and onDataSent() are two call-back functions that get evoked on each corresponding event.</p>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="c1">// Call-back for the event when data is being received</span>
<span class="kt">void</span><span class="w"> </span><span class="nf">onDataReceived</span><span class="w"> </span><span class="p">(</span><span class="kt">uint8_t</span><span class="w"> </span><span class="o">*</span><span class="n">mac_addr</span><span class="p">,</span><span class="w"> </span><span class="kt">uint8_t</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="kt">uint8_t</span><span class="w"> </span><span class="n">data_len</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>

File diff suppressed because one or more lines are too long