27#ifndef ACTUATORS_DSHOT_H
28#define ACTUATORS_DSHOT_H
31#include "modules/actuators/actuators_dshot_arch.h"
37#ifndef ACTUATORS_DSHOT_OFFSET
38#define ACTUATORS_DSHOT_OFFSET 48
45#ifndef ACTUATORS_DSHOT_NB
46#define ACTUATORS_DSHOT_NB (8+1)
65#define ActuatorDShotSet(_i, _v) { \
66 if (_v == 0) { actuators_dshot_values[_i].cmd = 0; } \
67 else { actuators_dshot_values[_i].cmd = _v + ACTUATORS_DSHOT_OFFSET; } \
65#define ActuatorDShotSet(_i, _v) { \ …
69#define ActuatorsDShotInit() actuators_dshot_arch_init()
70#define ActuatorsDShotCommit() actuators_dshot_arch_commit()
void actuators_dshot_arch_init(void)
Arch dependent init.
bool activated
current dshot channel is activated
float voltage
motor current
#define ACTUATORS_DSHOT_NB
Maxnum number of DSHOT commands This should be large enough for max applications: 8 motors +1 in case...
struct dshot actuators_dshot_values[ACTUATORS_DSHOT_NB]
void actuators_dshot_arch_commit(void)