Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main.h File Reference

Rotorcraft main loop. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STATIC_INLINE   static inline
 

Functions

STATIC_INLINE void main_init (void)
 
STATIC_INLINE void main_event (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)
 

Detailed Description

Rotorcraft main loop.

Definition in file main.h.

Macro Definition Documentation

#define STATIC_INLINE   static inline

Definition at line 34 of file main.h.

Function Documentation

STATIC_INLINE void failsafe_check ( void  )

Definition at line 215 of file main.c.

References AP_MODE_FAILSAFE, AP_MODE_KILL, AP_MODE_NAV, autopilot_mode, autopilot_motors_on, autopilot_set_mode(), GpsIsLost(), radio_control, RC_OK, and RadioControl::status.

Referenced by handle_periodic_tasks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

STATIC_INLINE void handle_periodic_tasks ( void  )

Definition at line 177 of file main.c.

References baro_periodic(), electrical_periodic(), failsafe_check(), main_periodic(), radio_control_periodic_task(), sys_time_check_and_ack_timer(), and telemetry_periodic().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

STATIC_INLINE void main_event ( void  )
inline

Definition at line 236 of file main.c.

References autopilot_on_rc_frame(), autopilot_rc, BaroEvent, DatalinkEvent, DetectGroundEvent(), GpsEvent, i2c_event(), ImuEvent, on_accel_event(), on_baro_abs_event(), on_baro_dif_event(), on_gps_event(), on_gyro_event(), on_mag_event(), and RadioControlEvent.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

STATIC_INLINE void main_periodic ( void  )
inline

Definition at line 194 of file main.c.

STATIC_INLINE void telemetry_periodic ( void  )

Definition at line 211 of file main.c.

References DefaultChannel, and DefaultDevice.

Referenced by handle_periodic_tasks().

+ Here is the caller graph for this function: