Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
STM32 PWM servos handling. More...
#include "std.h"
#include <BOARD_CONFIG>
Go to the source code of this file.
Macros | |
#define | ACTUATORS_PWM_NB 8 |
#define | SERVOS_TICS_OF_USEC(_v) (_v) |
#define | ActuatorPwmSet(_i, _v) { actuators_pwm_values[_i] = _v; } |
#define | ActuatorsPwmCommit actuators_pwm_commit |
Functions | |
void | actuators_pwm_commit (void) |
Set pulse widths from actuator values, assumed to be in us. More... | |
Variables | |
int32_t | actuators_pwm_values [ACTUATORS_PWM_NB] |
STM32 PWM servos handling.
Definition in file actuators_pwm_arch.h.
#define ActuatorPwmSet | ( | _i, | |
_v | |||
) | { actuators_pwm_values[_i] = _v; } |
Definition at line 43 of file actuators_pwm_arch.h.
#define ACTUATORS_PWM_NB 8 |
Definition at line 34 of file actuators_pwm_arch.h.
#define ActuatorsPwmCommit actuators_pwm_commit |
Definition at line 44 of file actuators_pwm_arch.h.
#define SERVOS_TICS_OF_USEC | ( | _v | ) | (_v) |
Definition at line 41 of file actuators_pwm_arch.h.
void actuators_pwm_commit | ( | void | ) |
Set pulse widths from actuator values, assumed to be in us.
Definition at line 155 of file actuators_pwm_arch.c.
References actuators_pwm_values, PWM_CMD_TO_US, PWM_SERVO_0, PWM_SERVO_0_CHANNEL, PWM_SERVO_0_DRIVER, PWM_SERVO_0_OC, PWM_SERVO_0_TIMER, PWM_SERVO_1, PWM_SERVO_10, PWM_SERVO_10_OC, PWM_SERVO_10_TIMER, PWM_SERVO_1_CHANNEL, PWM_SERVO_1_DRIVER, PWM_SERVO_1_OC, PWM_SERVO_1_TIMER, PWM_SERVO_2, PWM_SERVO_2_CHANNEL, PWM_SERVO_2_DRIVER, PWM_SERVO_2_OC, PWM_SERVO_2_TIMER, PWM_SERVO_3, PWM_SERVO_3_CHANNEL, PWM_SERVO_3_DRIVER, PWM_SERVO_3_OC, PWM_SERVO_3_TIMER, PWM_SERVO_4, PWM_SERVO_4_CHANNEL, PWM_SERVO_4_DRIVER, PWM_SERVO_4_OC, PWM_SERVO_4_TIMER, PWM_SERVO_5, PWM_SERVO_5_CHANNEL, PWM_SERVO_5_DRIVER, PWM_SERVO_5_OC, PWM_SERVO_5_TIMER, PWM_SERVO_6, PWM_SERVO_6_CHANNEL, PWM_SERVO_6_DRIVER, PWM_SERVO_6_OC, PWM_SERVO_6_TIMER, PWM_SERVO_7, PWM_SERVO_7_OC, PWM_SERVO_7_TIMER, PWM_SERVO_8, PWM_SERVO_8_OC, PWM_SERVO_8_TIMER, PWM_SERVO_9, PWM_SERVO_9_OC, and PWM_SERVO_9_TIMER.
Referenced by actuators_xvert_commit().
int32_t actuators_pwm_values[ACTUATORS_PWM_NB] |
Definition at line 50 of file actuators_pwm_arch.c.
Referenced by actuators_ardrone_commit(), actuators_pwm_commit(), and actuators_xvert_commit().