Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
actuators_dshot.h File Reference
#include "std.h"
#include "modules/actuators/actuators_dshot_arch.h"
+ Include dependency graph for actuators_dshot.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACTUATORS_DSHOT_OFFSET   48
 In normal DSHOT, first 48 values are special commands this offset allow to use 0 as the no-throttle command This should not be changed unless you know what you are doing. More...
 
#define ACTUATORS_DSHOT_NB   (8+1)
 Maxnum number of DSHOT commands This should be large enough for max applications: 8 motors +1 in case motor count starts at 1 and not 0. More...
 
#define ActuatorDShotSet(_i, _v)
 
#define ActuatorsDShotInit()   actuators_dshot_arch_init()
 
#define ActuatorsDShotCommit()   actuators_dshot_arch_commit()
 

Functions

void actuators_dshot_arch_init (void)
 Arch dependent init. More...
 
void actuators_dshot_arch_commit (void)
 

Variables

uint16_t actuators_dshot_values [ACTUATORS_DSHOT_NB]
 

Detailed Description

Author
Gautier Hattenberger Driver for DSHOT speed controller protocol

Definition in file actuators_dshot.h.

Macro Definition Documentation

◆ ActuatorDShotSet

#define ActuatorDShotSet (   _i,
  _v 
)
Value:
{ \
if (_v == 0) { actuators_dshot_values[_i] = 0; } \
}

Definition at line 57 of file actuators_dshot.h.

◆ ACTUATORS_DSHOT_NB

#define ACTUATORS_DSHOT_NB   (8+1)

Maxnum number of DSHOT commands This should be large enough for max applications: 8 motors +1 in case motor count starts at 1 and not 0.

Definition at line 46 of file actuators_dshot.h.

◆ ACTUATORS_DSHOT_OFFSET

#define ACTUATORS_DSHOT_OFFSET   48

In normal DSHOT, first 48 values are special commands this offset allow to use 0 as the no-throttle command This should not be changed unless you know what you are doing.

Definition at line 38 of file actuators_dshot.h.

◆ ActuatorsDShotCommit

#define ActuatorsDShotCommit ( )    actuators_dshot_arch_commit()

Definition at line 62 of file actuators_dshot.h.

◆ ActuatorsDShotInit

#define ActuatorsDShotInit ( )    actuators_dshot_arch_init()

Definition at line 61 of file actuators_dshot.h.

Function Documentation

◆ actuators_dshot_arch_commit()

◆ actuators_dshot_arch_init()

Variable Documentation

◆ actuators_dshot_values

uint16_t actuators_dshot_values[ACTUATORS_DSHOT_NB]

Definition at line 34 of file actuators_dshot_arch.c.

Referenced by actuators_dshot_arch_commit().

actuators_dshot_values
uint16_t actuators_dshot_values[ACTUATORS_DSHOT_NB]
Definition: actuators_dshot_arch.c:34
ACTUATORS_DSHOT_OFFSET
#define ACTUATORS_DSHOT_OFFSET
In normal DSHOT, first 48 values are special commands this offset allow to use 0 as the no-throttle c...
Definition: actuators_dshot.h:38