00001 <?php
00002 $CONF=$_GET['conf'];
00003 if($CONF == "")
00004 $CONF="/etc/image_settings.conf";
00005 $inits=parse_ini_file($CONF);
00006 $init_pars=array();
00007 reset($inits);
00008 while(list($key, $value) = each($inits)) {
00009 $init_pars[$key] = (int)$value;
00010 }
00011
00012
00013 if(elphel_get_state() > 7) {
00014 elphel_compressor_stop();
00015 while(elphel_get_state() > 7) ;
00016 elphel_compressor_reset();
00017 elphel_compressor_reset();
00018 }
00019 elphel_reset_sensor();
00020 elphel_set_P_arr($init_pars);
00021
00022 elphel_program_sensor (0);
00023
00024
00025
00026 elphel_compressor_run();
00027 elphel_wait_frame();
00028 elphel_set_P_arr($init_pars);
00029 elphel_wait_frame();
00030
00031
00032 ?>