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
autopilot.c File Reference

Fixedwing autopilot inititalization. More...

#include <stdint.h>
#include "firmwares/fixedwing/autopilot.h"
#include "state.h"
#include "firmwares/fixedwing/nav.h"
#include "pprz_version.h"
+ Include dependency graph for autopilot.c:

Go to the source code of this file.

Functions

void autopilot_send_mode (void)
 Send mode over telemetry. More...
 
void autopilot_init (void)
 Autopilot inititalization. More...
 

Variables

uint8_t pprz_mode
 
bool_t kill_throttle
 
uint8_t mcu1_status
 
bool_t launch
 
uint16_t autopilot_flight_time
 flight time in seconds. More...
 
uint8_t lateral_mode
 
uint16_t vsupply
 Supply voltage in deciVolt. More...
 
int32_t current
 Supply current in milliAmpere. More...
 
float energy
 Energy consumption (mAh) This is the ap copy of the measurement from fbw. More...
 
bool_t gps_lost
 
bool_t power_switch
 Power switch control. More...
 

Detailed Description

Fixedwing autopilot inititalization.

Definition in file autopilot.c.

Function Documentation

void autopilot_init ( void  )

Autopilot inititalization.

Definition at line 175 of file autopilot.c.

Referenced by init_ap(), and main_init().

+ Here is the caller graph for this function:

void autopilot_send_mode ( void  )

Send mode over telemetry.

Definition at line 167 of file autopilot.c.

References DefaultChannel, and DefaultDevice.

Referenced by navigation_task(), and telecommand_task().

+ Here is the caller graph for this function:

Variable Documentation

int32_t current

Supply current in milliAmpere.

This the ap copy of the measurement from fbw

Definition at line 53 of file autopilot.c.

Referenced by telecommand_task().

float energy

Energy consumption (mAh) This is the ap copy of the measurement from fbw.

Definition at line 54 of file autopilot.c.

Referenced by generic_com_periodic(), and telecommand_task().

bool_t gps_lost

Definition at line 56 of file autopilot.c.

Referenced by autopilot_init(), and navigation_task().

uint8_t lateral_mode

Definition at line 50 of file autopilot.c.

Referenced by autopilot_init(), fly_to_xy(), nav_without_gps(), and navigation_task().

bool_t launch

Definition at line 45 of file autopilot.c.

Referenced by autopilot_init().

uint8_t mcu1_status

Definition at line 43 of file autopilot.c.

Referenced by mcu1_status_update().

bool_t power_switch

Power switch control.

Definition at line 58 of file autopilot.c.

Referenced by autopilot_init().

uint16_t vsupply

Supply voltage in deciVolt.

This the ap copy of the measurement from fbw

Definition at line 52 of file autopilot.c.

Referenced by attitude_loop(), gsm_send_report_continue(), monitor_task(), and telecommand_task().