Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
main_ap.c File Reference
#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/rover/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.


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


void main_init (void)
 Main initialization. More...
void handle_periodic_tasks (void)
void main_periodic (void)
void telemetry_periodic (void)
void failsafe_check (void)
void main_event (void)


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

Rover main loop.

Definition in file main_ap.c.

Macro Definition Documentation


#define ABI_C

Definition at line 30 of file main_ap.c.



Definition at line 94 of file main_ap.c.


#define MODULES_C

Definition at line 28 of file main_ap.c.



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

Definition at line 264 of file main_ap.c.

Function Documentation

◆ failsafe_check()

◆ handle_periodic_tasks()

void handle_periodic_tasks ( void  )

◆ main_event()

void main_event ( void  )

Definition at line 272 of file main_ap.c.

References autopilot, autopilot_event(), autopilot_on_rc_frame(), BaroEvent, mcu_event(), RadioControlEvent, and pprz_autopilot::use_rc.

+ Here is the call graph for this function:

◆ main_init()

◆ main_periodic()

void main_periodic ( void  )

◆ telemetry_periodic()

void telemetry_periodic ( void  )

Definition at line 243 of file main_ap.c.

References autopilot_send_version(), DefaultChannel, DefaultDevice, and DefaultPeriodic.

+ Here is the call graph for this function:

Variable Documentation

◆ electrical_tid

tid_t electrical_tid

id for electrical_periodic() timer

Definition at line 109 of file main_ap.c.

◆ failsafe_tid

tid_t failsafe_tid

id for failsafe_check() timer

Definition at line 107 of file main_ap.c.

◆ main_periodic_tid

tid_t main_periodic_tid

id for main_periodic() timer

Definition at line 105 of file main_ap.c.

◆ modules_tid

tid_t modules_tid

id for modules_periodic_task() timer

Definition at line 106 of file main_ap.c.

◆ radio_control_tid

tid_t radio_control_tid

id for radio_control_periodic_task() timer

Definition at line 108 of file main_ap.c.

◆ telemetry_tid

tid_t telemetry_tid

id for telemetry_periodic() timer

Definition at line 110 of file main_ap.c.