38 #include "generated/modules.h"
39 #ifndef BAT_VOLTAGE_ARDRONE2_PERIODIC_FREQ
40 #warning No battery voltage measurement available! Please add <load name="bat_voltage_ardrone2.xml"/> to your modules section in aircraft file.
58 .dev_name =
"/dev/video1",
60 .format = V4L2_PIX_FMT_UYVY,
83 .dev_name =
"/dev/video2",
85 .format = V4L2_PIX_FMT_UYVY,
97 char pidof_commandline[200] =
"/bin/pidof -s ";
98 strcat(pidof_commandline, process_name);
108 fp = popen(pidof_commandline,
"r");
110 if (fgets(pid,
sizeof(pid) - 1, fp) != NULL) {
111 printf(
"Process ID deducted: \"%s\"\n", pid);
113 char kill_command_and_process[200] =
"kill -9 ";
114 strcat(kill_command_and_process, pid);
115 ret = system(kill_command_and_process);
133 int ret = system(
"killall -15 program.elf.respawner.sh");
struct img_size_t output_size
Output image size.
Capture images from a V4L2 device (Video for Linux 2)
int KillGracefully(char *process_name)
void board_init(void)
Optional board init function called at the start of mcu_init().
Arch independent mcu ( Micro Controller Unit ) utilities.
struct video_config_t bottom_camera
struct video_config_t front_camera