17#define MAX_FILENAME 255
18#define SHELL "/root/develop/allthings_obc2014/src/popcorn/popcorn.sh"
22 "lua props=require(\"propcase\");print(\"SetupScript\");set_prop(props.ISO_MODE,3200);set_prop(props.FLASH_MODE,2);set_prop(props.RESOLUTION,0);set_prop(props.DATE_STAMP,0);set_prop(props.AF_ASSIST_BEAM,0);set_prop(props.QUALITY,0);print(\"Ready\");\n";
54 perror(
"Can't start SHELL");
150 }
else if (pid == 0) {
156 execl(
"/bin/sh",
"sh",
"-c", command,
NULL);
static pid_t popen2(const char *command, int *infp, int *outfp)
Open a process with stdin and stdout.
static void wait_for_cmd(int timeout)
Wait for the commandline to be available TODO: add timeout.
void chdk_pipe_init(void)
Initialize the CHDK pipe.
void chdk_pipe_shoot(char *filename)
Shoot an image.
static void wait_for_img(char *filename, int timeout)
Wait for the image to be available TODO: add timeout.
void chdk_pipe_deinit(void)
Deinitialize CHDK pipe.