Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main.c File Reference

Rotorcraft main loop. More...

+ Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define MODULES_C
 
#define ABI_C
 
#define BARO_PERIODIC_FREQUENCY   50
 
#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

int main (void)
 
STATIC_INLINE void main_init (void)
 
STATIC_INLINE void handle_periodic_tasks (void)
 
STATIC_INLINE void main_periodic (void)
 
STATIC_INLINE void telemetry_periodic (void)
 
STATIC_INLINE void failsafe_check (void)
 
STATIC_INLINE 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.c.

Macro Definition Documentation

#define ABI_C

Definition at line 31 of file main.c.

#define BARO_PERIODIC_FREQUENCY   50

Definition at line 101 of file main.c.

Referenced by init_ap(), and main_init().

#define MODULES_C

Definition at line 29 of file main.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 322 of file main.c.

Referenced by failsafe_check().

Function Documentation

STATIC_INLINE void failsafe_check ( void  )
STATIC_INLINE void handle_periodic_tasks ( void  )

Definition at line 241 of file main.c.

Referenced by main(), and pprz_thd().

+ Here is the caller graph for this function:

int main ( void  )

Definition at line 123 of file main.c.

References get_sys_time_usec(), handle_periodic_tasks(), main_event(), main_init(), and sys_time_usleep().

+ Here is the call graph for this function:

static void main_event ( void  )
inline

Definition at line 362 of file main.c.

Referenced by main().

+ Here is the caller graph for this function:

static void main_init ( void  )
inline

Definition at line 159 of file main.c.

Referenced by main().

+ Here is the caller graph for this function:

static void main_periodic ( void  )
inline

Definition at line 268 of file main.c.

Referenced by handle_periodic_tasks().

+ Here is the caller graph for this function:

STATIC_INLINE void telemetry_periodic ( void  )

Definition at line 301 of file main.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 116 of file main.c.

tid_t failsafe_tid

id for failsafe_check() timer

Definition at line 114 of file main.c.

tid_t main_periodic_tid

id for main_periodic() timer

Definition at line 112 of file main.c.

tid_t modules_tid

id for modules_periodic_task() timer

Definition at line 113 of file main.c.

tid_t radio_control_tid

id for radio_control_periodic_task() timer

Definition at line 115 of file main.c.

tid_t telemetry_tid

id for telemetry_periodic() timer

Definition at line 117 of file main.c.