|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <signal.h>#include <string.h>#include "chdk_pipe.h"
Include dependency graph for chdk_pipe.c:Go to the source code of this file.
Macros | |
| #define | READ 0 |
| #define | WRITE 1 |
| #define | MAX_FILENAME 255 |
| #define | SHELL "/root/develop/allthings_obc2014/src/popcorn/popcorn.sh" |
Functions | |
| static void | wait_for_cmd (int timeout) |
| Wait for the commandline to be available TODO: add timeout. | |
| static void | wait_for_img (char *filename, int timeout) |
| Wait for the image to be available TODO: add timeout. | |
| static pid_t | popen2 (const char *command, int *infp, int *outfp) |
| Open a process with stdin and stdout. | |
| void | chdk_pipe_init (void) |
| Initialize the CHDK pipe. | |
| void | chdk_pipe_deinit (void) |
| Deinitialize CHDK pipe. | |
| void | chdk_pipe_shoot (char *filename) |
| Shoot an image. | |
Variables | |
| const char * | setup |
| static int | fo |
| static int | fi |
| #define MAX_FILENAME 255 |
Definition at line 17 of file chdk_pipe.c.
| #define READ 0 |
Definition at line 15 of file chdk_pipe.c.
| #define SHELL "/root/develop/allthings_obc2014/src/popcorn/popcorn.sh" |
Definition at line 18 of file chdk_pipe.c.
| #define WRITE 1 |
Definition at line 16 of file chdk_pipe.c.
Deinitialize CHDK pipe.
Definition at line 79 of file chdk_pipe.c.
Referenced by main().
Here is the caller graph for this function:Initialize the CHDK pipe.
Definition at line 50 of file chdk_pipe.c.
References fi, fo, foo, popen2(), setup, SHELL, and wait_for_cmd().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:Shoot an image.
Definition at line 92 of file chdk_pipe.c.
References fi, foo, and wait_for_img().
Referenced by handle_msg_shoot().
Here is the call graph for this function:
Here is the caller graph for this function:Open a process with stdin and stdout.
Definition at line 137 of file chdk_pipe.c.
References foo, READ, and WRITE.
Referenced by chdk_pipe_init().
Here is the caller graph for this function:Wait for the commandline to be available TODO: add timeout.
Definition at line 126 of file chdk_pipe.c.
Referenced by chdk_pipe_init(), and wait_for_img().
Here is the caller graph for this function:Wait for the image to be available TODO: add timeout.
Definition at line 102 of file chdk_pipe.c.
References fo, foo, timeout, and wait_for_cmd().
Referenced by chdk_pipe_shoot().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 24 of file chdk_pipe.c.
Referenced by chdk_pipe_deinit(), chdk_pipe_init(), and chdk_pipe_shoot().
|
static |
Definition at line 24 of file chdk_pipe.c.
Referenced by chdk_pipe_init(), wait_for_cmd(), and wait_for_img().
Definition at line 21 of file chdk_pipe.c.
Referenced by chdk_pipe_init().