43 .input_clk_freq = (26 / 2),
77 char pidof_commandline[200] =
"/bin/pidof ";
78 strcat(pidof_commandline, process_name);
88 fp = popen(pidof_commandline,
"r");
90 if (fgets(pid,
sizeof(pid) - 1, fp) != NULL) {
93 char kill_command_and_process[200] =
"kill -9 ";
94 strcat(kill_command_and_process, pid);
95 ret = system(kill_command_and_process);
122 int ret __attribute__((unused)) = system(
"killall -q -15 DragonStarter.sh");
#define MT9F002_Y_ODD_INC_VAL
uint8_t x_odd_inc
X increment for subsampling (1,3,7,15,31 accepted)
uint16_t output_height
Output height.
uint16_t op_sys_clk_div
Fixed PLL config from calculator tool.
uint8_t rowSpeed_2_0
Fixed PLL config from calculator tool.
#define MT9F002_OUTPUT_HEIGHT
uint16_t vt_pix_clk_div
Fixed PLL config from calculator tool.
#define MT9F002_INITIAL_OFFSET_X
Initialization and configuration of the MT9V117 CMOS Chip.
uint16_t pll_multiplier
Fixed PLL config from calculator tool.
#define MT9F002_GAIN_GREEN2
#define MT9F002_INITIAL_OFFSET_Y
float gain_blue
Gain for the Blue pixels [1.5 -> 63.50].
#define MT9F002_OUTPUT_SCALER
Our output is only OUTPUT_SCALER of the pixels we take of the sensor It is programmable in 1/16 steps...
float offset_y
Offset from top in pixels.
uint8_t y_odd_inc
Y increment for subsampling (1,3,7 accepted)
uint16_t vt_sys_clk_div
Fixed PLL config from calculator tool.
#define MT9F002_GAIN_GREEN1
float offset_x
Offset from left in pixels.
void board_init2(void)
Optional board init function called at the end of mcu_init().
float output_scaler
Output scale.
uint8_t shift_vt_pix_clk_div
Fixed PLL config from calculator tool.
uint8_t row_speed_10_8
Fixed PLL config from calculator tool.
enum mt9f002_interface interface
Interface used to connect.
#define MT9F002_TARGET_EXPOSURE
Exposure of the front camera of the bebop.
#define MT9F002_X_ODD_INC_VAL
float gain_green1
Gain for the GreenR pixels [1.5 -> 63.50].
uint16_t output_width
Output width.
void board_init(void)
Optional board init function called at the start of mcu_init().
float target_fps
FPS wanted.
void mt9v117_init(struct mt9v117_t *mt)
Initialisation of the Aptina MT9V117 CMOS sensor (1/6 inch VGA, bottom camera)
float gain_red
Gain for the Red pixels [1.5 -> 63.50].
#define MT9F002_OUTPUT_WIDTH
static int kill_gracefull(char *process_name)
float gain_green2
Gain for the GreenB pixels [1.5 -> 63.50].
Initialization and configuration of the MT9F002 CMOS Chip.
I2C peripheral structure.
Arch independent mcu ( Micro Controller Unit ) utilities.
uint16_t op_pix_clk_div
Fixed PLL config from calculator tool.
uint16_t pre_pll_clk_div
Fixed PLL config from calculator tool.
Parallel type connection.
struct i2c_periph * i2c_periph
I2C peripheral used to communicate over.
#define MT9F002_GAIN_BLUE
#define MT9F002_TARGET_FPS
float target_exposure
Target exposure time in ms.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.