|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Common tools for ABI middleware. More...
#include "std.h"#include "math/pprz_algebra_int.h"#include "math/pprz_algebra_float.h"#include "modules/gps/gps.h"#include "modules/radio_control/radio_control.h"#include "modules/actuators/actuators.h"#include "modules/actuators/actuators_t4_uart.h"#include "modules/core/abi_sender_ids.h"Go to the source code of this file.
Data Structures | |
| struct | abi_struct |
| Event structure to store callbacks in a linked list. More... | |
Macros | |
| #define | ABI_EXTERN extern |
| #define | ABI_CHECK_MAIN_THREAD FALSE |
| ABI messages must be sent from the main thread (the one running the periodic and event functions): their receivers are not thread-safe. | |
| #define | abi_check_thread(_msg_id) |
| #define | ABI_BROADCAST 255 |
| Broadcast address. | |
| #define | ABI_DISABLE 0 |
| Reserved ABI ID to disable callback. | |
| #define | TEMPERATURE_TYPE_AIR 0 |
| Types of the TEMPERATURE_RAW message, what the temperature measures. | |
| #define | TEMPERATURE_TYPE_DIFF 1 |
| differential pressure (pitot) sensor | |
| #define | TEMPERATURE_TYPE_BARO 2 |
| barometer die | |
| #define | TEMPERATURE_TYPE_IMU 3 |
| IMU die. | |
| #define | TEMPERATURE_TYPE_OTHER 4 |
| anything else | |
| #define | ABI_FOREACH(head, el) |
| Macros for linked list. | |
| #define | ABI_PREPEND(head, add) |
Typedefs | |
| typedef void(* | abi_callback) (void) |
| Generic callback definition. | |
| typedef struct abi_struct | abi_event |
Common tools for ABI middleware.
Definition in file abi_common.h.
| struct abi_struct |
Event structure to store callbacks in a linked list.
Definition at line 96 of file abi_common.h.
| Data Fields | ||
|---|---|---|
| abi_callback | cb | |
| uint8_t | id | |
| struct abi_struct * | next | |
| #define ABI_BROADCAST 255 |
Broadcast address.
When binding to an ABI message with broadcast address as a sender id, messages from all senders are received.
Definition at line 80 of file abi_common.h.
Referenced by actuators_t4_uart_init(), ahrs_dcm_wrapper_init(), ahrs_fc_wrapper_init(), ahrs_finv_wrapper_init(), ahrs_icq_wrapper_init(), ahrs_madgwick_wrapper_init(), ahrs_mlkf_wrapper_init(), air_data_get_sensor(), air_data_init(), aoa_t4_init(), autopilot_static_init(), cam_gimbal_init(), gps_init(), imu_get_accel(), imu_get_gyro(), imu_get_mag(), imu_init(), imu_quality_assessment_periodic(), ins_alt_float_init(), ins_ekf2_init(), ins_float_invariant_wrapper_init(), ins_flow_init(), ins_gps_passthrough_init(), ins_int_init(), ins_mekf_wind_wrapper_init(), ins_module_wrapper_init(), logger_control_effectiveness_init(), mag_calib_ukf_init(), pfc_actuators_init(), rssi_init(), send_accel(), send_accel_raw(), send_accel_scaled(), send_airspeed_raw(), send_baro_raw(), send_gyro(), send_gyro_raw(), send_gyro_scaled(), send_mag(), send_mag_current(), send_mag_raw(), send_mag_scaled(), stabilization_andi_init(), target_pos_init(), and uwb_positioning_init().
| #define ABI_CHECK_MAIN_THREAD FALSE |
ABI messages must be sent from the main thread (the one running the periodic and event functions): their receivers are not thread-safe.
With ABI_CHECK_MAIN_THREAD every message checks it, and one sent from another thread stops the program at that call (abort in NPS/SITL, halt on ChibiOS), to find it with the debugger. Default TRUE in NPS/SITL, FALSE otherwise. Needs the threads module.
Definition at line 62 of file abi_common.h.
| #define abi_check_thread | ( | _msg_id | ) |
Definition at line 70 of file abi_common.h.
| #define ABI_DISABLE 0 |
Reserved ABI ID to disable callback.
When binding to an ABI message with 0 as sender id, the callback is disabled.
Definition at line 86 of file abi_common.h.
Referenced by air_data_get_sensor(), air_data_init(), air_data_next(), air_data_periodic(), air_data_sensor_healthy(), airspeed_raw_cb(), baro_raw_cb(), diff_raw_cb(), imu_get_accel(), imu_get_gyro(), imu_get_mag(), imu_init(), send_accel(), send_accel_raw(), send_accel_scaled(), send_airspeed_raw(), send_baro_raw(), send_gyro(), send_gyro_raw(), send_gyro_scaled(), send_mag(), send_mag_current(), send_mag_raw(), send_mag_scaled(), and temp_raw_cb().
| #define ABI_EXTERN extern |
Definition at line 49 of file abi_common.h.
| #define ABI_FOREACH | ( | head, | |
| el ) |
Macros for linked list.
Definition at line 104 of file abi_common.h.
Referenced by cmd_abi().
| #define ABI_PREPEND | ( | head, | |
| add ) |
Definition at line 105 of file abi_common.h.
| #define TEMPERATURE_TYPE_AIR 0 |
Types of the TEMPERATURE_RAW message, what the temperature measures.
outside air temperature probe
Definition at line 89 of file abi_common.h.
Referenced by air_data_rank_temp(), airspeed_uavcan_cb(), meteo_stick_event(), and nps_autopilot_run_step().
| #define TEMPERATURE_TYPE_BARO 2 |
barometer die
Definition at line 91 of file abi_common.h.
Referenced by air_data_rank_temp(), baro_apogee_event(), baro_bmp280_event(), baro_bmp3_event(), baro_bmp_event(), baro_dps310_event(), baro_mpl3115_read_event(), baro_ms5611_event(), and baro_spa06_event().
| #define TEMPERATURE_TYPE_DIFF 1 |
differential pressure (pitot) sensor
Definition at line 90 of file abi_common.h.
Referenced by air_data_rank_temp(), mag_pitot_parse_msg(), ms45xx_i2c_event(), and sdp3x_event().
| #define TEMPERATURE_TYPE_IMU 3 |
IMU die.
Definition at line 92 of file abi_common.h.
Referenced by invensense3_456_parse_fifo_data(), invensense3_parse_fifo_data(), invensense3_parse_reg_data(), and temp_raw_cb().
| #define TEMPERATURE_TYPE_OTHER 4 |
| typedef void(* abi_callback) (void) |
Generic callback definition.
Definition at line 74 of file abi_common.h.
| typedef struct abi_struct abi_event |
Definition at line 101 of file abi_common.h.