diff --git a/ESP-IDF_Robot/tutorial/docs/build/doctrees/data.doctree b/ESP-IDF_Robot/tutorial/docs/build/doctrees/data.doctree index 236b31a78..45235b781 100644 Binary files a/ESP-IDF_Robot/tutorial/docs/build/doctrees/data.doctree and b/ESP-IDF_Robot/tutorial/docs/build/doctrees/data.doctree differ diff --git a/ESP-IDF_Robot/tutorial/docs/build/doctrees/environment.pickle b/ESP-IDF_Robot/tutorial/docs/build/doctrees/environment.pickle index 173c6c83f..00de8cbb8 100644 Binary files a/ESP-IDF_Robot/tutorial/docs/build/doctrees/environment.pickle and b/ESP-IDF_Robot/tutorial/docs/build/doctrees/environment.pickle differ 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 1736f9946..e62d910e2 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 @@ -26,4 +26,18 @@ Struct Walkthrough *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). \ No newline at end of file +*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))? +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The packed attribute tells the compiler not to add any padding between fields in memory. This makes the struct: + + - Compact + - Predictable for serialization over protocols like UART or ESP-NOW + - Ideal for low-latency transmission in embedded systems + +This ensures the receiver interprets the exact byte layout you expect, minimizing bandwidth and maximizing compatibility across platforms. \ No newline at end of file diff --git a/ESP-IDF_Robot/tutorial/docs/build/html/data.html b/ESP-IDF_Robot/tutorial/docs/build/html/data.html index 46cc7fa0a..2b8287d30 100644 --- a/ESP-IDF_Robot/tutorial/docs/build/html/data.html +++ b/ESP-IDF_Robot/tutorial/docs/build/html/data.html @@ -56,6 +56,20 @@ It’s intended to be sent from a transmitting device (like a remote control or

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))?

+

The packed attribute tells the compiler not to add any padding between fields in memory. This makes the struct:

+
+
    +
  • Compact

  • +
  • Predictable for serialization over protocols like UART or ESP-NOW

  • +
  • Ideal for low-latency transmission in embedded systems

  • +
+
+

This ensures the receiver interprets the exact byte layout you expect, minimizing bandwidth and maximizing compatibility across platforms.

@@ -90,6 +104,7 @@ It’s intended to be sent from a transmitting device (like a remote control or
  • 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..ac8a18b2d 100644 --- a/ESP-IDF_Robot/tutorial/docs/build/html/index.html +++ b/ESP-IDF_Robot/tutorial/docs/build/html/index.html @@ -46,6 +46,7 @@
  • DATA STRUCT
  • TRANSMITTER
  • @@ -662,6 +667,52 @@ It’s intended to be sent from a transmitting device (like a remote control 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))? + + ¶ + +

    +

    + The packed attribute tells the compiler not to add any padding between fields in memory. This makes the struct: +

    +
    +
    +
      +
    • +

      + Compact +

      +
    • +
    • +

      + Predictable for serialization over protocols like UART or ESP-NOW +

      +
    • +
    • +

      + Ideal for low-latency transmission in embedded systems +

      +
    • +
    +
    +
    +

    + This ensures the receiver interprets the exact byte layout you expect, minimizing bandwidth and maximizing compatibility across platforms. +