Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
main_ap.h File Reference

AP ( AutoPilot ) process API. More...

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

Go to the source code of this file.

Functions

void init_ap (void)
 
void handle_periodic_tasks_ap (void)
 
void event_task_ap (void)
 
void sensors_task (void)
 Run at PERIODIC_FREQUENCY (60Hz if not defined) More...
 
void navigation_task (void)
 Compute desired_course. More...
 
void monitor_task (void)
 monitor stuff run at 1Hz More...
 
void reporting_task (void)
 Send a series of initialisation messages followed by a stream of periodic ones. More...
 
void attitude_loop (void)
 

Detailed Description

AP ( AutoPilot ) process API.

Definition in file main_ap.h.

Function Documentation

void attitude_loop ( void  )

Definition at line 522 of file main_ap.c.

References ahrs_update_infrared(), ap_state, h_ctl_aileron_setpoint, h_ctl_attitude_loop(), h_ctl_elevator_setpoint, inter_mcu_received_ap, TRUE, v_ctl_throttle_slew(), and v_ctl_throttle_slewed.

Referenced by event_task_ap(), handle_periodic_tasks_ap(), and sim_periodic_task().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void event_task_ap ( void  )

USE_GPS

Definition at line 606 of file main_ap.c.

References AhrsEvent, attitude_loop(), FALSE, GpsEvent, i2c_event(), ImuEvent, inter_mcu_received_fbw, link_mcu_event_task(), on_accel_event(), on_gyro_event(), on_mag_event(), and telecommand_task().

Referenced by sim_periodic_task().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void handle_periodic_tasks_ap ( void  )
void init_ap ( void  )
void monitor_task ( void  )
void reporting_task ( void  )

Send a series of initialisation messages followed by a stream of periodic ones.

Called at 60Hz.

initialisation phase during boot

then report periodicly

Definition at line 412 of file main_ap.c.

References DefaultChannel, DefaultDevice, FALSE, TRUE, and version.

Referenced by handle_periodic_tasks_ap(), and sim_periodic_task().

+ Here is the caller graph for this function:

void sensors_task ( void  )

Run at PERIODIC_FREQUENCY (60Hz if not defined)

Definition at line 546 of file main_ap.c.

References imu_periodic(), and ins_periodic_task().

Referenced by handle_periodic_tasks_ap(), and sim_periodic_task().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: