RC Robot Tutorial

This commit is contained in:
2025-07-21 03:14:40 -04:00
parent 7b0e5a89b8
commit 5edfcdea38
7 changed files with 8 additions and 8 deletions

View File

@@ -180,7 +180,7 @@ modes, making the system more adaptable and scalable for future development.
int motor4_rpm_pwm; int motor4_rpm_pwm;
}; };
On the transmitter`` device, the PWM values for the DC motors are send to the receover using the following function. The variable On the transmitter device, the PWM values for the DC motors are sent to the receiver using the following function. The variable
**receiver_mac** stores the MAC address of the receiver device (ESP32-C3 bitBoard on the RC car). **receiver_mac** stores the MAC address of the receiver device (ESP32-C3 bitBoard on the RC car).
.. code-block:: c .. code-block:: c
@@ -217,7 +217,7 @@ On the transmitter`` device, the PWM values for the DC motors are send to the re
This function is invoked by a dedicated FreeRTOS task every 100 milliseconds, ensuring consistent and timely transmission of This function is invoked by a dedicated FreeRTOS task every 100 milliseconds, ensuring consistent and timely transmission of
control data to the receiver device. By leveraging FreeRTOS's precise task scheduling, the system maintains low-latency control data to the receiver device. By leveraging FreeRTOS's precise task scheduling, the system maintains low-latency
communication and predictable behavior—critical for real-time control in embedded applications. communication and predictable behaviour, critical for real-time control in embedded applications.
.. code-block:: c .. code-block:: c

View File

@@ -245,7 +245,7 @@ modes, making the system more adaptable and scalable for future development.</p>
<span class="p">};</span> <span class="p">};</span>
</pre></div> </pre></div>
</div> </div>
<p>On the transmitter`` device, the PWM values for the DC motors are send to the receover using the following function. The variable <p>On the transmitter device, the PWM values for the DC motors are sent to the receiver using the following function. The variable
<strong>receiver_mac</strong> stores the MAC address of the receiver device (ESP32-C3 bitBoard on the RC car).</p> <strong>receiver_mac</strong> stores the MAC address of the receiver device (ESP32-C3 bitBoard on the RC car).</p>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="c1">// Function to send data to the receiver</span> <div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="c1">// Function to send data to the receiver</span>
<span class="kt">void</span><span class="w"> </span><span class="nf">sendData</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="kt">void</span><span class="w"> </span><span class="nf">sendData</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
@@ -280,7 +280,7 @@ modes, making the system more adaptable and scalable for future development.</p>
</div> </div>
<p>This function is invoked by a dedicated FreeRTOS task every 100 milliseconds, ensuring consistent and timely transmission of <p>This function is invoked by a dedicated FreeRTOS task every 100 milliseconds, ensuring consistent and timely transmission of
control data to the receiver device. By leveraging FreeRTOSs precise task scheduling, the system maintains low-latency control data to the receiver device. By leveraging FreeRTOSs precise task scheduling, the system maintains low-latency
communication and predictable behavior—critical for real-time control in embedded applications.</p> communication and predictable behaviour, critical for real-time control in embedded applications.</p>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="c1">// Continous, periodic task that sends data.</span> <div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="c1">// Continous, periodic task that sends data.</span>
<span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">rc_send_data_task</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">arg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">rc_send_data_task</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">arg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>

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: 4411a565481aaed0407a57fb723b91cf config: 6c1e6acfddf8d460ff3e3d08d615776c
tags: 62a1e7829a13fc7881b6498c52484ec0 tags: 62a1e7829a13fc7881b6498c52484ec0

View File

@@ -929,7 +929,7 @@ modes, making the system more adaptable and scalable for future development.
</div> </div>
</div> </div>
<p> <p>
On the transmitter`` device, the PWM values for the DC motors are send to the receover using the following function. The variable On the transmitter device, the PWM values for the DC motors are sent to the receiver using the following function. The variable
<strong> <strong>
receiver_mac receiver_mac
</strong> </strong>
@@ -972,7 +972,7 @@ modes, making the system more adaptable and scalable for future development.
<p> <p>
This function is invoked by a dedicated FreeRTOS task every 100 milliseconds, ensuring consistent and timely transmission of This function is invoked by a dedicated FreeRTOS task every 100 milliseconds, ensuring consistent and timely transmission of
control data to the receiver device. By leveraging FreeRTOS&rsquo;s precise task scheduling, the system maintains low-latency control data to the receiver device. By leveraging FreeRTOS&rsquo;s precise task scheduling, the system maintains low-latency
communication and predictable behavior&mdash;critical for real-time control in embedded applications. communication and predictable behaviour, critical for real-time control in embedded applications.
</p> </p>
<div class="highlight-c notranslate"> <div class="highlight-c notranslate">
<div class="highlight"> <div class="highlight">