From f4b257de8e16b6056f2debed26c07f93e20a10b2 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Tue, 1 Apr 2025 11:40:57 +0200 Subject: [PATCH] diagram --- src/drone/src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/drone/src/main.cpp b/src/drone/src/main.cpp index c4e1ad7..481cc5f 100644 --- a/src/drone/src/main.cpp +++ b/src/drone/src/main.cpp @@ -279,7 +279,6 @@ bool sbusLostFrame; DSM1024 DSM; #endif #if defined USE_ESPNow -// Structure example to receive data // Must match the sender structure typedef struct struct_message { @@ -288,9 +287,7 @@ typedef struct struct_message int PWMCH3 = 1500; int PWMCH4 = 1500; } struct_message; - -// Create a struct_message called myData -struct_message myData; +struct_message myData; //Initialise struct as myData #endif // IMU: @@ -1332,6 +1329,7 @@ void controlRATE() void scaleCommands() { + //TODO: Rewrite this mess with LEDC and use internal ESP pwm clocks // DESCRIPTION: Scale normalized actuator commands to values for ESC/Servo protocol /* * mX_command_scaled variables from the mixer function are scaled to 125-250us for OneShot125 protocol. sX_command_scaled variables from