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
orange_avoider.h File Reference
#include <inttypes.h>
+ Include dependency graph for orange_avoider.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void orange_avoider_init (void)
 
void orange_avoider_periodic (void)
 
uint8_t moveWaypointForwards (uint8_t waypoint, float distanceMeters)
 
uint8_t increase_nav_heading (int32_t *heading, int32_t increment)
 Increases the NAV heading. More...
 
uint8_t chooseRandomIncrementAvoidance (void)
 

Variables

uint8_t safeToGoForwards
 
int32_t incrementForAvoidance
 

Detailed Description

Author
Roland Meertens Example on how to use the colours detected to avoid orange pole in the cyberzoo

Definition in file orange_avoider.h.

Function Documentation

uint8_t chooseRandomIncrementAvoidance ( void  )

Definition at line 78 of file orange_avoider.c.

References incrementForAvoidance.

Referenced by orange_avoider_init().

+ Here is the caller graph for this function:

uint8_t increase_nav_heading ( int32_t heading,
int32_t  increment 
)

Increases the NAV heading.

Assumes heading is an INT32_ANGLE. It is bound in this function.

Definition at line 51 of file orange_avoider.c.

uint8_t moveWaypointForwards ( uint8_t  waypoint,
float  distanceMeters 
)

Definition at line 58 of file orange_avoider.c.

References ANGLE_FLOAT_OF_BFP, nav_heading, POS_BFP_OF_REAL, stateGetPositionEnu_i(), waypoint_set_xy_i(), EnuCoor_i::x, EnuCoor_i::y, and EnuCoor_i::z.

+ Here is the call graph for this function:

void orange_avoider_init ( void  )

Definition at line 25 of file orange_avoider.c.

References chooseRandomIncrementAvoidance(), color_cb_max, color_cb_min, color_cr_max, color_cr_min, color_lum_max, and color_lum_min.

+ Here is the call graph for this function:

void orange_avoider_periodic ( void  )

Definition at line 38 of file orange_avoider.c.

References color_count, safeToGoForwards, and tresholdColorCount.

Variable Documentation

int32_t incrementForAvoidance

Definition at line 23 of file orange_avoider.c.

Referenced by chooseRandomIncrementAvoidance().

uint8_t safeToGoForwards

Definition at line 21 of file orange_avoider.c.

Referenced by orange_avoider_periodic().