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