Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
autopilot_firmware.h File Reference

Fixedwing specific autopilot interface and initialization. More...

#include "std.h"
#include "autopilot.h"
#include "modules/energy/electrical.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.
void monitor_task (void)
 monitoring task should be called at 1Hz

Variables

uint8_t lateral_mode

Detailed Description

Fixedwing specific autopilot interface and initialization.

Definition in file autopilot_firmware.h.

Macro Definition Documentation

◆ LATERAL_MODE_COURSE

#define LATERAL_MODE_COURSE   3

Definition at line 39 of file autopilot_firmware.h.

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

◆ LATERAL_MODE_MANUAL

#define LATERAL_MODE_MANUAL   0

Definition at line 36 of file autopilot_firmware.h.

Referenced by autopilot_static_init().

◆ LATERAL_MODE_NB

#define LATERAL_MODE_NB   4

Definition at line 40 of file autopilot_firmware.h.

◆ LATERAL_MODE_ROLL

◆ LATERAL_MODE_ROLL_RATE

#define LATERAL_MODE_ROLL_RATE   1

Definition at line 37 of file autopilot_firmware.h.

Function Documentation

◆ autopilot_firmware_init()

void autopilot_firmware_init ( void )
extern

Init function.

Definition at line 157 of file autopilot_firmware.c.

◆ monitor_task()

void monitor_task ( void )
extern

monitoring task should be called at 1Hz

monitoring task should be called at 1Hz

Definition at line 199 of file autopilot_firmware.c.

References autopilot, CATASTROPHIC_BAT_KILL_DELAY, DefaultChannel, DefaultDevice, dist2_to_home, electrical, KILL_MODE_DISTANCE, MIN_SPEED_FOR_TAKEOFF, sys_time::nb_sec, Square, and stateGetHorizontalSpeedNorm_f().

Here is the call graph for this function:

Variable Documentation

◆ lateral_mode