|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"Go to the source code of this file.
Data Structures | |
| struct | faulhaber_t |
Macros | |
| #define | ACTUATORS_FAULHABER_COMMAND_SCALE 1000.0f |
| #define | ActuatorFaulhaberSet actuators_faulhaber_set |
| #define | ActuatorsFaulhaberInit() |
| #define | ActuatorsFaulhaberCommit() |
Enumerations | |
| enum | faulhaber_modes_t { FH_MODE_INIT , FH_MODE_VELOCITY , FH_MODE_ERROR , FH_MODE_REQ_ERR , FH_MODE_RESET_ERR } |
Functions | |
| void | actuators_faulhaber_init (void) |
| void | actuators_faulhaber_periodic (void) |
| void | actuators_faulhaber_event (void) |
| void | actuators_faulhaber_SetMode (uint8_t mode) |
| void | actuators_faulhaber_set (uint8_t idx, int16_t value) |
Variables | |
| struct faulhaber_t | faulhaber |
Definition in file actuators_faulhaber.h.
| struct faulhaber_t |
Definition at line 40 of file actuators_faulhaber.h.
| Data Fields | ||
|---|---|---|
| bool | homing_completed | Once the homing is completed. |
| int32_t | max_velocity | The maximum velocity of the controller. |
| enum faulhaber_modes_t | mode | Current mode of the controller. |
| float | p_gain | The proportional gain of the velocity controller. |
| bool | position_ready | Ready for receiving (new) positions. |
| int32_t | real_position | The real position from the feedback of the controller. |
| int32_t | setpoint_position | The setpoint position controlled from the actuator. |
| uint8_t | state | The state of the mode. |
| bool | target_reached | When the target position is reached. |
| int32_t | target_velocity | The target velocity send to the controller. |
| #define ActuatorFaulhaberSet actuators_faulhaber_set |
Definition at line 66 of file actuators_faulhaber.h.
| #define ACTUATORS_FAULHABER_COMMAND_SCALE 1000.0f |
Definition at line 64 of file actuators_faulhaber.h.
Referenced by actuators_faulhaber_set(), and faulhaber_parse_msg().
| #define ActuatorsFaulhaberCommit | ( | ) |
Definition at line 68 of file actuators_faulhaber.h.
| #define ActuatorsFaulhaberInit | ( | ) |
Definition at line 67 of file actuators_faulhaber.h.
| enum faulhaber_modes_t |
| Enumerator | |
|---|---|
| FH_MODE_INIT | |
| FH_MODE_VELOCITY | |
| FH_MODE_ERROR | |
| FH_MODE_REQ_ERR | |
| FH_MODE_RESET_ERR | |
Definition at line 32 of file actuators_faulhaber.h.
|
extern |
Definition at line 457 of file actuators_faulhaber.c.
References faulhaber_dev, faulhaber_p, faulhaber_parse_msg(), faulhaber_parser(), GOT_FULL_PACKET, uart_char_available(), uart_getch(), and UINIT.
|
extern |
Definition at line 167 of file actuators_faulhaber.c.
References faulhaber, FAULHABER_MAX_VELOCITY, faulhaber_p, FAULHABER_P_GAIN, FH_MODE_INIT, and UINIT.
|
extern |
Definition at line 182 of file actuators_faulhaber.c.
References faulhaber, faulhaber_dev, faulhaber_send_command(), FH_MODE_ERROR, FH_MODE_INIT, FH_MODE_REQ_ERR, FH_MODE_RESET_ERR, FH_MODE_VELOCITY, get_sys_time_float(), and last_time.
Definition at line 474 of file actuators_faulhaber.c.
References ACTUATORS_FAULHABER_COMMAND_SCALE, faulhaber, idx, and UNUSED.
|
extern |
Definition at line 468 of file actuators_faulhaber.c.
|
extern |
Definition at line 59 of file actuators_faulhaber.c.
Referenced by actuators_faulhaber_init(), actuators_faulhaber_periodic(), actuators_faulhaber_set(), actuators_faulhaber_SetMode(), and faulhaber_parse_msg().