Paparazzi UAS  v5.15_devel-79-g48e7b20
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bebop_ae_awb.c File Reference
+ Include dependency graph for bebop_ae_awb.c:

Go to the source code of this file.

Macros

#define MAX_HIST_Y   255
 
#define MIN_HIST_Y   1
 
#define BEBOP_AE_AWB_VERBOSE   0
 
#define PRINT(string,...)   fprintf(stderr, "[bebop_ae_awb->%s()] " string,__FUNCTION__ , ##__VA_ARGS__)
 
#define VERBOSE_PRINT(...)
 
#define BEBOP_AE_AWB_NICE   5
 
#define BEBOP_AUTO_EXPOSURE   true
 
#define BEBOP_AE_EXPOSURE_GAIN   0.8
 
#define BEBOP_AE_MIDDLE_INDEX   160
 
#define BEBOP_AE_DARK_IGNORE   0.4
 
#define BEBOP_AE_BRIGHT_IGNORE   0.2
 
#define BEBOP_AE_DARK_BINS   80
 
#define BEBOP_AE_BRIGHT_BINS   20
 
#define BEBOP_AUTO_WHITE_BALANCE   true
 
#define BEBOP_AWB_MIN_GAINS   1.0
 
#define BEBOP_AWB_MAX_GAINS   63.5
 
#define BEBOP_AWB_GAIN   0.5
 
#define BEBOP_AWB_GAIN_SCHEDULING   false
 
#define BEBOP_AWB_GAIN_SCHEDULING_TARGET   10.0
 
#define BEBOP_AWB_GAIN_SCHEDULING_TOLERANCE   7.5
 
#define BEBOP_AWB_GAIN_SCHEDULING_STEP   0.02
 
#define BEBOP_AWB_MIN_GREY_PIXELS   1000
 

Functions

static struct image_tupdate_ae_awb (struct image_t *img)
 
void bebop_ae_awb_init (void)
 

Variables

struct ae_setting_t ae_set
 
struct awb_setting_t awb_set
 

Detailed Description

Author
Freek van Tienen, Kirk Scheper Auto exposure and Auto white balancing for the front camera on the Parrot Bebop 1 and 2 and the Disco

Definition in file bebop_ae_awb.c.

Macro Definition Documentation

#define BEBOP_AE_AWB_NICE   5

Definition at line 51 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AE_AWB_VERBOSE   0

Definition at line 36 of file bebop_ae_awb.c.

#define BEBOP_AE_BRIGHT_BINS   20

Definition at line 90 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AE_BRIGHT_IGNORE   0.2

Definition at line 78 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AE_DARK_BINS   80

Definition at line 84 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AE_DARK_IGNORE   0.4

Definition at line 72 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AE_EXPOSURE_GAIN   0.8

Definition at line 60 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AE_MIDDLE_INDEX   160

Definition at line 66 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AUTO_EXPOSURE   true

Definition at line 55 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AUTO_WHITE_BALANCE   true

Definition at line 95 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AWB_GAIN   0.5

Definition at line 112 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AWB_GAIN_SCHEDULING   false

Definition at line 118 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AWB_GAIN_SCHEDULING_STEP   0.02

Definition at line 136 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AWB_GAIN_SCHEDULING_TARGET   10.0

Definition at line 124 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AWB_GAIN_SCHEDULING_TOLERANCE   7.5

Definition at line 130 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

#define BEBOP_AWB_MAX_GAINS   63.5

Definition at line 106 of file bebop_ae_awb.c.

Referenced by update_ae_awb().

#define BEBOP_AWB_MIN_GAINS   1.0

Definition at line 100 of file bebop_ae_awb.c.

Referenced by update_ae_awb().

#define BEBOP_AWB_MIN_GREY_PIXELS   1000

Definition at line 142 of file bebop_ae_awb.c.

Referenced by update_ae_awb().

#define MAX_HIST_Y   255

Definition at line 32 of file bebop_ae_awb.c.

Referenced by update_ae_awb().

#define MIN_HIST_Y   1

Definition at line 33 of file bebop_ae_awb.c.

Referenced by update_ae_awb().

#define PRINT (   string,
  ... 
)    fprintf(stderr, "[bebop_ae_awb->%s()] " string,__FUNCTION__ , ##__VA_ARGS__)

Definition at line 40 of file bebop_ae_awb.c.

#define VERBOSE_PRINT (   ...)

Definition at line 46 of file bebop_ae_awb.c.

Referenced by update_ae_awb().

Function Documentation

Variable Documentation

struct ae_setting_t ae_set

Definition at line 146 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().

struct awb_setting_t awb_set

Definition at line 147 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init().