Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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, uint8_t camera_id)
 
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

◆ BEBOP_AE_AWB_NICE

#define BEBOP_AE_AWB_NICE   5

Definition at line 51 of file bebop_ae_awb.c.

◆ BEBOP_AE_AWB_VERBOSE

#define BEBOP_AE_AWB_VERBOSE   0

Definition at line 36 of file bebop_ae_awb.c.

◆ BEBOP_AE_BRIGHT_BINS

#define BEBOP_AE_BRIGHT_BINS   20

Definition at line 90 of file bebop_ae_awb.c.

◆ BEBOP_AE_BRIGHT_IGNORE

#define BEBOP_AE_BRIGHT_IGNORE   0.2

Definition at line 78 of file bebop_ae_awb.c.

◆ BEBOP_AE_DARK_BINS

#define BEBOP_AE_DARK_BINS   80

Definition at line 84 of file bebop_ae_awb.c.

◆ BEBOP_AE_DARK_IGNORE

#define BEBOP_AE_DARK_IGNORE   0.4

Definition at line 72 of file bebop_ae_awb.c.

◆ BEBOP_AE_EXPOSURE_GAIN

#define BEBOP_AE_EXPOSURE_GAIN   0.8

Definition at line 60 of file bebop_ae_awb.c.

◆ BEBOP_AE_MIDDLE_INDEX

#define BEBOP_AE_MIDDLE_INDEX   160

Definition at line 66 of file bebop_ae_awb.c.

◆ BEBOP_AUTO_EXPOSURE

#define BEBOP_AUTO_EXPOSURE   true

Definition at line 55 of file bebop_ae_awb.c.

◆ BEBOP_AUTO_WHITE_BALANCE

#define BEBOP_AUTO_WHITE_BALANCE   true

Definition at line 95 of file bebop_ae_awb.c.

◆ BEBOP_AWB_GAIN

#define BEBOP_AWB_GAIN   0.5

Definition at line 112 of file bebop_ae_awb.c.

◆ BEBOP_AWB_GAIN_SCHEDULING

#define BEBOP_AWB_GAIN_SCHEDULING   false

Definition at line 118 of file bebop_ae_awb.c.

◆ BEBOP_AWB_GAIN_SCHEDULING_STEP

#define BEBOP_AWB_GAIN_SCHEDULING_STEP   0.02

Definition at line 136 of file bebop_ae_awb.c.

◆ BEBOP_AWB_GAIN_SCHEDULING_TARGET

#define BEBOP_AWB_GAIN_SCHEDULING_TARGET   10.0

Definition at line 124 of file bebop_ae_awb.c.

◆ BEBOP_AWB_GAIN_SCHEDULING_TOLERANCE

#define BEBOP_AWB_GAIN_SCHEDULING_TOLERANCE   7.5

Definition at line 130 of file bebop_ae_awb.c.

◆ BEBOP_AWB_MAX_GAINS

#define BEBOP_AWB_MAX_GAINS   63.5

Definition at line 106 of file bebop_ae_awb.c.

◆ BEBOP_AWB_MIN_GAINS

#define BEBOP_AWB_MIN_GAINS   1.0

Definition at line 100 of file bebop_ae_awb.c.

◆ BEBOP_AWB_MIN_GREY_PIXELS

#define BEBOP_AWB_MIN_GREY_PIXELS   1000

Definition at line 142 of file bebop_ae_awb.c.

◆ MAX_HIST_Y

#define MAX_HIST_Y   255

Definition at line 32 of file bebop_ae_awb.c.

◆ MIN_HIST_Y

#define MIN_HIST_Y   1

Definition at line 33 of file bebop_ae_awb.c.

◆ PRINT

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

Definition at line 40 of file bebop_ae_awb.c.

◆ VERBOSE_PRINT

#define VERBOSE_PRINT (   ...)

Definition at line 46 of file bebop_ae_awb.c.

Function Documentation

◆ bebop_ae_awb_init()

◆ update_ae_awb()

Variable Documentation

◆ ae_set

struct ae_setting_t ae_set

Definition at line 146 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init(), and update_ae_awb().

◆ awb_set

struct awb_setting_t awb_set

Definition at line 147 of file bebop_ae_awb.c.

Referenced by bebop_ae_awb_init(), and update_ae_awb().