Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
chemotaxis.c File Reference
#include "modules/enose/chemotaxis.h"
#include "generated/airframe.h"
#include "state.h"
#include "std.h"
#include "firmwares/fixedwing/nav.h"
#include "generated/flight_plan.h"
#include "subsystems/datalink/downlink.h"
#include "modules/enose/chemo_detect.h"
+ Include dependency graph for chemotaxis.c:

Go to the source code of this file.

Macros

#define MAX_RADIUS   250
 
#define ALPHA   0.5
 

Functions

bool nav_chemotaxis_init (uint8_t c, uint8_t plume)
 
bool nav_chemotaxis (uint8_t c, uint8_t plume)
 

Variables

static uint8_t last_plume_value
 
static float radius
 
static int8_t sign
 

Macro Definition Documentation

#define ALPHA   0.5

Definition at line 11 of file chemotaxis.c.

Referenced by nav_chemotaxis().

#define MAX_RADIUS   250

Definition at line 10 of file chemotaxis.c.

Referenced by nav_chemotaxis(), and nav_chemotaxis_init().

Function Documentation

bool nav_chemotaxis_init ( uint8_t  c,
uint8_t  plume 
)

Definition at line 18 of file chemotaxis.c.

References last_plume_value, MAX_RADIUS, radius, sign, waypoints, point::x, and point::y.

Variable Documentation

uint8_t last_plume_value
static

Definition at line 13 of file chemotaxis.c.

Referenced by nav_chemotaxis(), and nav_chemotaxis_init().

int8_t sign
static

Definition at line 16 of file chemotaxis.c.

Referenced by nav_chemotaxis(), and nav_chemotaxis_init().