Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main_ap.c File Reference

Rotorcraft main loop. More...

#include <inttypes.h>
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "led.h"
#include "subsystems/datalink/telemetry.h"
#include "subsystems/datalink/datalink.h"
#include "subsystems/datalink/downlink.h"
#include "subsystems/settings.h"
#include "subsystems/commands.h"
#include "subsystems/actuators.h"
#include "subsystems/imu.h"
#include "subsystems/gps.h"
#include "subsystems/electrical.h"
#include "autopilot.h"
#include "subsystems/radio_control.h"
#include "subsystems/ahrs.h"
#include "state.h"
#include "firmwares/rotorcraft/main_ap.h"
#include "generated/modules.h"
#include "subsystems/abi.h"
#include "subsystems/navigation/waypoints.h"
+ Include dependency graph for main_ap.c:

Go to the source code of this file.

Macros

#define MODULES_C
 
#define ABI_C
 
#define RC_LOST_MODE   AP_MODE_FAILSAFE
 mode to enter when RC is lost while using a mode with RC input (not AP_MODE_NAV) More...
 

Functions

void main_init (void)
 
void handle_periodic_tasks (void)
 
void main_periodic (void)
 
void telemetry_periodic (void)
 
void failsafe_check (void)
 
void main_event (void)
 

Variables

tid_t main_periodic_tid
 id for main_periodic() timer More...
 
tid_t modules_tid
 id for modules_periodic_task() timer More...
 
tid_t failsafe_tid
 id for failsafe_check() timer More...
 
tid_t radio_control_tid
 id for radio_control_periodic_task() timer More...
 
tid_t electrical_tid
 id for electrical_periodic() timer More...
 
tid_t telemetry_tid
 id for telemetry_periodic() timer More...
 

Detailed Description

Rotorcraft main loop.

Definition in file main_ap.c.

Macro Definition Documentation

#define ABI_C

Definition at line 31 of file main_ap.c.

#define MODULES_C

Definition at line 29 of file main_ap.c.

#define RC_LOST_MODE   AP_MODE_FAILSAFE

mode to enter when RC is lost while using a mode with RC input (not AP_MODE_NAV)

Definition at line 291 of file main_ap.c.

Referenced by failsafe_check().

Function Documentation

void failsafe_check ( void  )

Definition at line 294 of file main_ap.c.

Referenced by handle_periodic_tasks(), and main_init().

+ Here is the caller graph for this function:

void handle_periodic_tasks ( void  )

Definition at line 202 of file main_ap.c.

void main_event ( void  )
inline

Definition at line 336 of file main_ap.c.

void main_init ( void  )
inline

Definition at line 118 of file main_ap.c.

void main_periodic ( void  )
inline

Definition at line 237 of file main_ap.c.

Referenced by handle_periodic_tasks().

+ Here is the caller graph for this function:

void telemetry_periodic ( void  )

Definition at line 270 of file main_ap.c.

Referenced by handle_periodic_tasks().

+ Here is the caller graph for this function:

Variable Documentation

tid_t electrical_tid

id for electrical_periodic() timer

Definition at line 112 of file main_ap.c.

tid_t failsafe_tid

id for failsafe_check() timer

Definition at line 110 of file main_ap.c.

tid_t main_periodic_tid

id for main_periodic() timer

Definition at line 108 of file main_ap.c.

tid_t modules_tid

id for modules_periodic_task() timer

Definition at line 109 of file main_ap.c.

tid_t radio_control_tid

id for radio_control_periodic_task() timer

Definition at line 111 of file main_ap.c.

tid_t telemetry_tid

id for telemetry_periodic() timer

Definition at line 113 of file main_ap.c.