Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
autopilot_firmware.h File Reference

Fixedwing specific autopilot interface and initialization. More...

#include "std.h"
#include "autopilot.h"
+ Include dependency graph for autopilot_firmware.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LATERAL_MODE_MANUAL   0
 
#define LATERAL_MODE_ROLL_RATE   1
 
#define LATERAL_MODE_ROLL   2
 
#define LATERAL_MODE_COURSE   3
 
#define LATERAL_MODE_NB   4
 

Functions

void autopilot_firmware_init (void)
 Init function. More...
 

Variables

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 FIXME use electrical module ? More...
 
uint8_t mcu1_status
 Second MCU status (FBW part) More...
 

Detailed Description

Fixedwing specific autopilot interface and initialization.

Definition in file autopilot_firmware.h.

Macro Definition Documentation

#define LATERAL_MODE_COURSE   3

Definition at line 38 of file autopilot_firmware.h.

Referenced by fly_to_xy(), h_ctl_guidance_loop(), and navigation_task().

#define LATERAL_MODE_MANUAL   0

Definition at line 35 of file autopilot_firmware.h.

Referenced by autopilot_static_init().

#define LATERAL_MODE_NB   4

Definition at line 39 of file autopilot_firmware.h.

#define LATERAL_MODE_ROLL   2
#define LATERAL_MODE_ROLL_RATE   1

Definition at line 36 of file autopilot_firmware.h.

Function Documentation

void autopilot_firmware_init ( void  )

Init function.

Definition at line 133 of file autopilot_firmware.c.

Variable Documentation

int32_t current

Supply current in milliAmpere.

This the ap copy of the measurement from fbw FIXME use electrical module ?

Definition at line 36 of file autopilot_firmware.c.

Referenced by autopilot_firmware_init(), autopilot_generated_on_rc_frame(), autopilot_static_on_rc_frame(), send_bat(), and send_energy().

float energy

Energy consumption (mAh) This is the ap copy of the measurement from fbw FIXME use electrical module ?

Definition at line 37 of file autopilot_firmware.c.

Referenced by autopilot_firmware_init(), autopilot_generated_on_rc_frame(), autopilot_static_on_rc_frame(), generic_com_periodic(), send_bat(), and send_energy().

uint8_t mcu1_status

Second MCU status (FBW part)

Definition at line 40 of file autopilot_firmware.c.

Referenced by mcu1_status_update(), and send_mode().

uint16_t vsupply

Supply voltage in deciVolt.

This the ap copy of the measurement from fbw FIXME use electrical module ?

Definition at line 35 of file autopilot_firmware.c.

Referenced by attitude_loop(), autopilot_firmware_init(), autopilot_generated_on_rc_frame(), autopilot_static_on_rc_frame(), gsm_send_report_continue(), monitor_task(), send_bat(), send_energy(), and v_ctl_guidance_loop().