41 char pidof_commandline[200] =
"/bin/pidof ";
42 strcat(pidof_commandline, process_name);
52 fp = popen(pidof_commandline,
"r");
54 if (fgets(pid,
sizeof(pid) - 1, fp) != NULL) {
57 char kill_command_and_process[200] =
"kill -9 ";
58 strcat(kill_command_and_process, pid);
59 ret = system(kill_command_and_process);
86 int ret __attribute__((unused)) = system(
"killall -q -15 DragonStarter.sh");
106 .input_clk_freq = (26 / 2),
#define MT9F002_TARGET_EXPOSURE
Exposure of the front camera of the bebop.
uint16_t output_height
Output height.
uint16_t op_sys_clk_div
Fixed PLL config from calculator tool.
#define MT9F002_TARGET_FPS
uint8_t rowSpeed_2_0
Fixed PLL config from calculator tool.
uint16_t vt_pix_clk_div
Fixed PLL config from calculator tool.
Initialization and configuration of the MT9V117 CMOS Chip.
uint16_t pll_multiplier
Fixed PLL config from calculator tool.
#define MT9F002_OUTPUT_WIDTH
float gain_blue
Gain for the Blue pixels [1.5 -> 63.50].
uint16_t offset_x
Offset from left in pixels.
uint16_t vt_sys_clk_div
Fixed PLL config from calculator tool.
void mt9f002_init(struct mt9f002_t *mt)
Initialisation of the Aptina MT9F002 CMOS sensor (front camera)
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_OUTPUT_HEIGHT
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].
float gain_green2
Gain for the GreenB pixels [1.5 -> 63.50].
Initialization and configuration of the MT9F002 CMOS Chip.
uint16_t offset_y
Offset from top in pixels.
#define MT9F002_INITIAL_OFFSET_Y
I2C peripheral structure.
Arch independent mcu ( Micro Controller Unit ) utilities.
#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...
uint16_t op_pix_clk_div
Fixed PLL config from calculator tool.
#define MT9F002_INITIAL_OFFSET_X
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.
float target_exposure
Target exposure time in ms.
static int kill_gracefull(char *process_name)
Architecture independent I2C (Inter-Integrated Circuit Bus) API.