Commit 831ef1ed authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed sensor_code for mt9f002

parent f384910b
...@@ -605,6 +605,7 @@ function detect_camera(){ ...@@ -605,6 +605,7 @@ function detect_camera(){
log_msg("detect_camera()",0); log_msg("detect_camera()",0);
$GLOBALS['camera_state_arr']['max_latency'] = 5; // frames to manually advance $GLOBALS['camera_state_arr']['max_latency'] = 5; // frames to manually advance
write_php_ini ($GLOBALS['camera_state_arr'], $GLOBALS['camera_state_path'] ); write_php_ini ($GLOBALS['camera_state_arr'], $GLOBALS['camera_state_path'] );
// 52 is MT9x00x, update later
$sensor_code = 52; $sensor_code = 52;
log_msg("detect_camera():\n".str_sensors($GLOBALS['sensors']),0); log_msg("detect_camera():\n".str_sensors($GLOBALS['sensors']),0);
log_msg("ports:". implode(", ",$GLOBALS['ports'])); log_msg("ports:". implode(", ",$GLOBALS['ports']));
...@@ -740,9 +741,12 @@ function detect_camera(){ ...@@ -740,9 +741,12 @@ function detect_camera(){
$output[$k] = str_replace('\n', "\n", $v); $output[$k] = str_replace('\n', "\n", $v);
} }
log_msg("COMMAND_OUTPUT for 'autocampars.py localhost py393 hargs-power_par12':\n". log_msg("COMMAND_OUTPUT for 'autocampars.py localhost py393 hargs-hispi':\n".
print_r($output,1)."\ncommand return value=".$retval."\n"); print_r($output,1)."\ncommand return value=".$retval."\n");
// sensor's code from c313a.h
$sensor_code = 56;
}else { }else {
respond_xml ('', 'Do not know how to initialize master camera '.print_r($GLOBALS['camera_state_arr']['is_mt9p006'],1)); respond_xml ('', 'Do not know how to initialize master camera '.print_r($GLOBALS['camera_state_arr']['is_mt9p006'],1));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment