From fa3906b0879c1591d461d9711646b4bded0b9515 Mon Sep 17 00:00:00 2001 From: Alexandre Bobkov Date: Sat, 5 Jul 2025 17:27:32 -0400 Subject: [PATCH] . --- .../tutorial/docs/build/doctrees/data.doctree | Bin 10931 -> 10907 bytes .../docs/build/doctrees/environment.pickle | Bin 24228 -> 24216 bytes .../docs/build/html/_sources/data.rst.txt | 6 +++--- .../tutorial/docs/build/html/data.html | 8 ++++---- .../tutorial/docs/build/html/index.html | 2 +- .../tutorial/docs/build/html/searchindex.js | 2 +- .../tutorial/docs/build/simplepdf/.buildinfo | 2 +- .../build/simplepdf/esp-idf_espnow_rc-car.pdf | Bin 3545362 -> 3545339 bytes .../tutorial/docs/build/simplepdf/index.html | 12 ++++++------ ESP-IDF_Robot/tutorial/docs/source/data.rst | 6 +++--- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/ESP-IDF_Robot/tutorial/docs/build/doctrees/data.doctree b/ESP-IDF_Robot/tutorial/docs/build/doctrees/data.doctree index 59d42e478b2d40c851af9973791ced5e24908610..4ed3ead3a1f51e82abfc11d12eaa18d10f551ab1 100644 GIT binary patch delta 135 zcmdlSIy;o5fpzMHjVurO^mtqnOA-|V5-W4^6H}&Su*Xix5bZ$~Y@O0LrFM!&hE&GB z$%(vLn?3oNI3{0Kl;(u0mJ6SJK~ZjVuXqoaDo+Z~INbuMafum9K=V{$r}Tiu6`;M1& delta 137 zcmbOox;d1kfpzMNjVurO^n`*-ib|796v7j8vP&|G@=Mb*rev_kPRS7M!6LPpo!^3k uF?6znxEh$0+T1AK!(}K`3^qi!9LbQx3?-l`DzQ^~pt1@`vYU;RGC2T#D>4HB diff --git a/ESP-IDF_Robot/tutorial/docs/build/doctrees/environment.pickle b/ESP-IDF_Robot/tutorial/docs/build/doctrees/environment.pickle index be361f1b4166ee16c47a758a1ba006de1e85d9b5..91b9fafd20ee8b9a9480a92e847eccb5d1c16ca5 100644 GIT binary patch delta 496 zcmZ3omvP2kMwSNFsl6Ln?1dsZGjkKuGxHLQDyQ`D7MCQJWG2Ta78j=$l}zbjPt3_o z&&yAPu@Z}?^zf8q6s0Dn#OLHEC*}YplJj#5a#Aa%^l;?m7p0bz7UfOpVM)r*&)Gaj zXo;X8M?q13dQoaIP$z33vJdj#TB@{{utb5r9>^5Y8)Yq1QDx1#1Rm&X7d5nxy)Q3rCscr%Wk_(PS>oQEU%?J`MajZjy+6gEM1q7T@OYT23rLr}gS8O^(su&A4{6guy{spn#%R z{^VGFiOGq69zfnlFNw*A{Py$mxBz{l5Rh1zlb@I}d5V9i0?6_nuEf0LjQk>yCx8L1 z4DzyW0aOuxz$wPk$+rUXfM$CJ`ZEEknZb$7KerH7{^ zqbM~oB|axVIWcES4`*g>VtQs?Vo~Lk9+ss1e4r3SZ({N0IYLVWd08{_Qc^2`k|~KL ziIW3WB*Zxiit^KoQj3eH^l+CHCFT|9W|ows7EP{EabR3Id9RA(WGz*$$q!V#7}reJ zR<%)I%f!G?+9MF3lAoNHn4213k{@4?SduZNc8W&UN}ycURuHjba-XWK=o%37Ac$B6 zB94HFwVMy9&SmBTDeYqanCsAIy(A_d^4l*g6kJkNnp~m~o|uyj47U8z^o+@U{-J6hr}S_o<|Sw37lFJqrAJt~ z7_3yc97!p2z$wPi$>##{fcDr1`ZEEk-rz)LAoV`1h=~p4vaD~L(<8l@ROYh-+0#M9 Yau6{aM63o8>p{d~5V3jl)#$@a01+#$umAu6 diff --git a/ESP-IDF_Robot/tutorial/docs/build/html/_sources/data.rst.txt b/ESP-IDF_Robot/tutorial/docs/build/html/_sources/data.rst.txt index 8cd5b8d1e..0a1e1bb54 100644 --- a/ESP-IDF_Robot/tutorial/docs/build/html/_sources/data.rst.txt +++ b/ESP-IDF_Robot/tutorial/docs/build/html/_sources/data.rst.txt @@ -24,8 +24,8 @@ When used with communication protocols like ESP-NOW, this struct is **encoded** **transmitted** at regular intervals or in response to user input, and finally **decoded** on the receiving end to control hardware. -Struct Walkthrough ------------------- +Data Payload +------------ *x_axis* and *y_axis* fields capture analog input from a joystick, determining direction and speed. *nav_bttn* represents a joystick push-button. @@ -35,7 +35,7 @@ Struct Walkthrough *motor1_rpm_pwm* to *motor4_rpm_pwm* provide individual PWM signals to four DC motors. This enables fine-grained speed control, supports differential drive configurations, and even allows for maneuvering in multi-directional platforms like omni-wheel robots. -Why Use __attribute((packed))? +Why use __attribute((packed))? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ESP-NOW uses fixed-size data packets (up to 250 bytes). The *__attribute__((packed))* removes compiler-added padding for precise byte alignment. diff --git a/ESP-IDF_Robot/tutorial/docs/build/html/data.html b/ESP-IDF_Robot/tutorial/docs/build/html/data.html index 8439b9176..6a1ea7ad1 100644 --- a/ESP-IDF_Robot/tutorial/docs/build/html/data.html +++ b/ESP-IDF_Robot/tutorial/docs/build/html/data.html @@ -54,15 +54,15 @@ It’s intended to be sent from a transmitting device (like a remote control or

When used with communication protocols like ESP-NOW, this struct is encoded into a byte stream, then transmitted at regular intervals or in response to user input, and finally decoded on the receiving end to control hardware.

-
-

Struct Walkthrough

+
+

Data Payload

x_axis and y_axis fields capture analog input from a joystick, determining direction and speed. nav_bttn represents a joystick push-button.

led allows the transmitter to toggle an onboard LED and is used for status indication (e.g. pairing, battery warning, etc).

motor1_rpm_pwm to motor4_rpm_pwm provide individual PWM signals to four DC motors. This enables fine-grained speed control, supports differential drive configurations, and even allows for maneuvering in multi-directional platforms like omni-wheel robots.

-

Why Use __attribute((packed))?

+

Why use __attribute((packed))?

ESP-NOW uses fixed-size data packets (up to 250 bytes). The __attribute__((packed)) removes compiler-added padding for precise byte alignment.

As packed attribute tells the compiler not to add any padding between fields in memory, this makes the struct:

@@ -107,7 +107,7 @@ This enables fine-grained speed control, supports differential drive configurati
  • INTRODUCTION
  • HOW DOES IT WORK?
  • DATA STRUCT
  • TRANSMITTER
  • diff --git a/ESP-IDF_Robot/tutorial/docs/build/html/index.html b/ESP-IDF_Robot/tutorial/docs/build/html/index.html index a63434947..053c56bcb 100644 --- a/ESP-IDF_Robot/tutorial/docs/build/html/index.html +++ b/ESP-IDF_Robot/tutorial/docs/build/html/index.html @@ -45,7 +45,7 @@
  • DATA STRUCT
  • TRANSMITTER