27 #ifndef ACTUATORS_DSHOT_H
28 #define ACTUATORS_DSHOT_H
37 #ifndef ACTUATORS_DSHOT_OFFSET
38 #define ACTUATORS_DSHOT_OFFSET 48
45 #ifndef ACTUATORS_DSHOT_NB
46 #define ACTUATORS_DSHOT_NB (8+1)
57 #define ActuatorDShotSet(_i, _v) { \
58 if (_v == 0) { actuators_dshot_values[_i] = 0; } \
59 else { actuators_dshot_values[_i] = _v + ACTUATORS_DSHOT_OFFSET; } \
61 #define ActuatorsDShotInit() actuators_dshot_arch_init()
62 #define ActuatorsDShotCommit() actuators_dshot_arch_commit()
void actuators_dshot_arch_init(void)
Arch dependent init.
uint16_t actuators_dshot_values[ACTUATORS_DSHOT_NB]
void actuators_dshot_arch_commit(void)
#define ACTUATORS_DSHOT_NB
Maxnum number of DSHOT commands This should be large enough for max applications: 8 motors +1 in case...