Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
Actuator driver for the swing. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | ActuatorsSwing |
Macros | |
#define | ActuatorsSwingSet(_i, _v) { actuators_swing.rpm_ref[_i] = _v; } |
#define | ActuatorsSwingCommit() actuators_swing_commit(); |
#define | ActuatorsSwingInit() actuators_swing_init(); |
Functions | |
void | actuators_swing_commit (void) |
void | actuators_swing_init (void) |
Variables | |
struct ActuatorsSwing | actuators_swing |
Actuator driver for the swing.
Definition in file actuators.h.
struct ActuatorsSwing |
Definition at line 33 of file actuators.h.
Data Fields | ||
---|---|---|
uint16_t | rpm_ref[4] | Reference RPM. |
#define ActuatorsSwingCommit | ( | ) | actuators_swing_commit(); |
Definition at line 38 of file actuators.h.
#define ActuatorsSwingInit | ( | ) | actuators_swing_init(); |
Definition at line 39 of file actuators.h.
#define ActuatorsSwingSet | ( | _i, | |
_v | |||
) | { actuators_swing.rpm_ref[_i] = _v; } |
Definition at line 37 of file actuators.h.
void actuators_swing_commit | ( | void | ) |
Definition at line 86 of file actuators.c.
References actuators_swing, PWM_DELOS_SET_RATIOS, PWM_REG_RATIO_PRECISION_MASK, PWM_REG_SATURATION, PWM_TOTAL_RANGE, ActuatorsSwing::rpm_ref, and pwm_delos_quadruplet::val.
Referenced by actuators_swing_init().
void actuators_swing_init | ( | void | ) |
Definition at line 66 of file actuators.c.
References actuators_swing_commit(), PWM_DELOS_SET_CTRL, PWM_DELOS_SET_SPEEDS, SiP6_PWM0_START, SiP6_PWM1_START, SiP6_PWM2_START, and SiP6_PWM3_START.
struct ActuatorsSwing actuators_swing |
Definition at line 55 of file actuators.c.
Referenced by actuators_swing_commit().