Hardware independent API for actuators (servos, motor controllers).
More...
#include "paparazzi.h"
#include "std.h"
#include "generated/airframe.h"
Go to the source code of this file.
Hardware independent API for actuators (servos, motor controllers).
Definition in file actuators.h.
◆ act_feedback_t
Definition at line 44 of file actuators.h.
| Data Fields |
|
float |
force |
In Newton or Newton metre. |
|
uint8_t |
idx |
General index of the actuators (generated in airframe.h). |
|
float |
position |
In radians. |
|
uint8_t |
power_pct |
Power rating in percent. |
|
int32_t |
rpm |
RPM. |
|
struct act_feedback_set_t |
set |
Bitset registering what is set as feedback. |
|
float |
speed |
In meter per second or radian per second. |
◆ act_feedback_t::act_feedback_set_t
| struct act_feedback_t::act_feedback_set_t |
Definition at line 46 of file actuators.h.
| Data Fields |
|
bool |
force: 1 |
Force is set. |
|
bool |
position: 1 |
Position is set. |
|
bool |
power: 1 |
Power rating is set. |
|
bool |
rpm: 1 |
RPM is set. |
|
bool |
speed: 1 |
Speed is set. |
◆ act_config_t
Definition at line 62 of file actuators.h.
| Data Fields |
|
uint8_t |
driver_no |
Driver number. |
|
int32_t |
max |
Driver max value (or motor max position). |
|
int32_t |
min |
Driver min value (or motor stop position). |
|
int32_t |
neutral |
Driver neutral value (or motor idle position). |
|
uint8_t |
servo_idx |
Driver servo index. |
|
float |
travel_down |
Precomputed travel down coef. |
|
float |
travel_up |
Precomputed travel up coef. |
◆ act_set_t
Actuator set callback.
- Parameters
-
| driver_idx | actuator index in driver frame |
| driver_value | actuator value in driver unit |
Definition at line 77 of file actuators.h.
◆ actuators_init()
| void actuators_init |
( |
void | | ) |
|
|
extern |
◆ actuators_periodic()
| void actuators_periodic |
( |
void | | ) |
|
|
extern |