|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"Go to the source code of this file.
Functions | |
| void | pfc_actuators_init (void) |
| Register the preflight checks for the actuators. | |
| void | pfc_actuators_run (void) |
| Move the actuators, should be put in the command laws. | |
| void | pfc_actuators_start (bool start) |
| Start the actuator testing. | |
| int16_t | pfc_actuators_value (uint8_t idx, int16_t value) |
| Get the actuator value in the command laws to move the actuator during the preflight checks. | |
Definition in file pfc_actuators.h.
|
extern |
Register the preflight checks for the actuators.
Definition at line 141 of file pfc_actuators.c.
References ABI_BROADCAST, act_feedback_ev, actuators_pfc, pfc_act_feedback_cb(), pfc_acts, PFC_ACTUATOR_STATE_WAIT, pfc_actuators, pfc_actuators_cb(), PFC_ACTUATORS_STATE_INIT, and preflight_check_register().
|
extern |
Move the actuators, should be put in the command laws.
Definition at line 156 of file pfc_actuators.c.
References pfc_actuator_t::feedback_id, pfc_actuator_t::feedback_id2, get_sys_time_float(), pfc_actuator_t::high_feedback, pfc_actuator_t::low_feedback, pfc_acts, PFC_ACTUATOR_STATE_HIGH, PFC_ACTUATOR_STATE_LOW, PFC_ACTUATOR_STATE_WAIT, pfc_actuators, PFC_ACTUATORS_DEBUG, pfc_actuators_debug, pfc_actuators_error(), PFC_ACTUATORS_STATE_ERROR, PFC_ACTUATORS_STATE_RUNNING, PFC_ACTUATORS_STATE_SUCCESS, and pfc_actuator_t::timeout.
|
extern |
Start the actuator testing.
Definition at line 227 of file pfc_actuators.c.
References PFC_ACTUATOR_STATE_WAIT, pfc_actuators, PFC_ACTUATORS_STATE_INIT, and PFC_ACTUATORS_STATE_RUNNING.
Get the actuator value in the command laws to move the actuator during the preflight checks.
| idx | The index of the actuator in the preflight checks struct |
| value | The value if no checks are performed on this actuator |
Definition at line 249 of file pfc_actuators.c.
References idx, pfc_acts, PFC_ACTUATOR_STATE_HIGH, PFC_ACTUATOR_STATE_LOW, pfc_actuators, and PFC_ACTUATORS_STATE_RUNNING.