 |
Paparazzi UAS
v6.1.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
43 #include "generated/airframe.h"
44 #include "generated/modules.h"
54 #ifndef COMMAND_ROLL_TRIM
55 #define COMMAND_ROLL_TRIM 0
58 #ifndef COMMAND_PITCH_TRIM
59 #define COMMAND_PITCH_TRIM 0
62 #ifndef COMMAND_YAW_TRIM
63 #define COMMAND_YAW_TRIM 0
67 PRINT_CONFIG_VAR(PERIODIC_FREQUENCY)
68 #if !USE_GENERATED_AUTOPILOT
76 #ifndef TELEMETRY_FREQUENCY
77 #define TELEMETRY_FREQUENCY 60
83 #ifdef AHRS_PROPAGATE_FREQUENCY
84 #if (AHRS_PROPAGATE_FREQUENCY > PERIODIC_FREQUENCY)
85 #warning "PERIODIC_FREQUENCY should be least equal or greater than AHRS_PROPAGATE_FREQUENCY"
86 INFO_VALUE(
"it is recommended to configure in your airframe PERIODIC_FREQUENCY to at least ",
AHRS_PROPAGATE_FREQUENCY)
100 #define SYS_PERIOD (1.f / PERIODIC_FREQUENCY)
101 #define SENSORS_PERIOD (1.f / PERIODIC_FREQUENCY)
102 #define DATALINK_PERIOD (1.f / TELEMETRY_FREQUENCY)
110 modules_sensors_init();
111 modules_estimation_init();
114 modules_control_init();
115 modules_actuators_init();
116 modules_datalink_init();
117 modules_default_init();
160 modules_sensors_periodic_task();
164 modules_estimation_periodic_task();
165 modules_control_periodic_task();
166 modules_default_periodic_task();
170 modules_mcu_periodic_task();
171 modules_core_periodic_task();
177 modules_datalink_periodic_task();
178 #if defined DATALINK || defined SITL
205 #if PERIODIC_TELEMETRY
218 modules_mcu_event_task();
220 modules_core_event_task();
221 modules_sensors_event_task();
222 modules_estimation_event_task();
223 modules_control_event_task();
224 modules_datalink_event_task();
225 modules_default_event_task();
229 #if defined MCU_SPI_LINK || defined MCU_UART_LINK
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
tid_t sys_time_register_timer_offset(tid_t timer, float offset, sys_time_cb cb)
Register a new system timer with an fixed offset from another one.
struct OrientationReps body_to_imu
rotation from body to imu frame
#define PPRZ_MUTEX_UNLOCK(_mtx)
void autopilot_send_version(void)
send autopilot version
void link_mcu_event_task(void)
static struct FloatQuat * orientationGetQuat_f(struct OrientationReps *orientation)
Get vehicle body attitude quaternion (float).
volatile bool inter_mcu_received_fbw
Arch independent mcu ( Micro Controller Unit ) utilities.
Architecture independent timing functions.
#define NAVIGATION_FREQUENCY
Default fixedwing navigation frequency.
#define COMMAND_ROLL_TRIM
int8_t tid_t
sys_time timer id type
arch independent LED (Light Emitting Diodes) API
struct Imu imu
global IMU state
#define COMMAND_PITCH_TRIM
uint16_t f
Camera baseline, in meters (i.e. horizontal distance between the two cameras of the stereo setup)
#define TELEMETRY_FREQUENCY
#define PPRZ_MUTEX_LOCK(_mtx)
void reporting_task(void)
Send a series of initialisation messages followed by a stream of periodic ones.
void handle_periodic_tasks_ap(void)
tid_t modules_mcu_core_tid
IDs for timers.
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.
#define AHRS_PROPAGATE_FREQUENCY
struct ap_state * ap_state
void autopilot_on_rc_frame(void)
RC frame handler.
tid_t modules_sensors_tid
tid_t modules_datalink_tid
#define CONTROL_FREQUENCY
#define DefaultPeriodic
Set default periodic telemetry.
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.