![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
#include "modules/actuators/actuators_dshot_arch.h"
Go to the source code of this file.
Data Structures | |
struct | dshot |
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. | |
#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. | |
#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. | |
void | actuators_dshot_arch_commit (void) |
Variables | |
struct dshot | actuators_dshot_values [ACTUATORS_DSHOT_NB] |
Definition in file actuators_dshot.h.
struct dshot |
Definition at line 65 of file actuators_dshot.h.
#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.
#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.
#define ActuatorsDShotCommit | ( | ) | actuators_dshot_arch_commit() |
Definition at line 70 of file actuators_dshot.h.
#define ActuatorsDShotInit | ( | ) | actuators_dshot_arch_init() |
Definition at line 69 of file actuators_dshot.h.
Definition at line 300 of file actuators_dshot_arch.c.
References ACT_FEEDBACK_DSHOT_ID, ACTUATORS_DSHOT_NB, actuators_dshot_private, actuators_dshot_values, DSHOT_BIDIR_ERR_CRC, DSHOT_BIDIR_TLM_EDT, dshotGetTelemetry(), dshotSendFrame(), dshotSetThrottle(), foo, act_feedback_t::idx, act_feedback_t::act_feedback_set_t::rpm, act_feedback_t::rpm, and act_feedback_t::set.
Arch dependent init.
Definition at line 162 of file actuators_dshot_arch.c.
References ACTUATORS_DSHOT_NB, actuators_dshot_private, actuators_dshot_values, CONCAT_GPIO, DefaultPeriodic, dshot_init_struct(), dshot_set_struct(), dshotStart(), esc_msg_send(), FALSE, foo, gpio_setup_pin_af(), gpio_setup_pin_af_pullup(), PRINT_CONFIG_VAR(), and register_periodic_telemetry().
|
extern |
Definition at line 45 of file actuators_dshot_arch.c.
Referenced by actuators_dshot_arch_commit(), actuators_dshot_arch_init(), and esc_msg_send().