Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures 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 "subsystems/nav.h"
#include "generated/flight_plan.h"
#include "ap_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_t nav_chemotaxis_init (uint8_t c, uint8_t plume)
 
bool_t 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_t nav_chemotaxis_init ( uint8_t  c,
uint8_t  plume 
)

Definition at line 18 of file chemotaxis.c.

References c, FALSE, last_plume_value, MAX_RADIUS, radius, sign, waypoints, EnuCoor_i::x, and EnuCoor_i::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().