mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-04 12:24:56 +00:00
diagram
This commit is contained in:
@@ -279,7 +279,6 @@ bool sbusLostFrame;
|
|||||||
DSM1024 DSM;
|
DSM1024 DSM;
|
||||||
#endif
|
#endif
|
||||||
#if defined USE_ESPNow
|
#if defined USE_ESPNow
|
||||||
// Structure example to receive data
|
|
||||||
// Must match the sender structure
|
// Must match the sender structure
|
||||||
typedef struct struct_message
|
typedef struct struct_message
|
||||||
{
|
{
|
||||||
@@ -288,9 +287,7 @@ typedef struct struct_message
|
|||||||
int PWMCH3 = 1500;
|
int PWMCH3 = 1500;
|
||||||
int PWMCH4 = 1500;
|
int PWMCH4 = 1500;
|
||||||
} struct_message;
|
} struct_message;
|
||||||
|
struct_message myData; //Initialise struct as myData
|
||||||
// Create a struct_message called myData
|
|
||||||
struct_message myData;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// IMU:
|
// IMU:
|
||||||
@@ -1332,6 +1329,7 @@ void controlRATE()
|
|||||||
|
|
||||||
void scaleCommands()
|
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
|
// 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
|
* mX_command_scaled variables from the mixer function are scaled to 125-250us for OneShot125 protocol. sX_command_scaled variables from
|
||||||
|
Reference in New Issue
Block a user