fwrite($confFile,createDefaultConfig($GLOBALS['version'],$multisensor,$eyesis_mode));// use multisensor defaults if 10359 +sensors present
fclose($confFile);
log_msg("autocampars.php created a new configuration file $configPath from defaults.".($multisensor?(($eyesis_mode>0)?(' Used Eyesis mode, camera '.$eyesis_mode):' Used multisensor mode.'):''));
log_msg("Sensors on ports: $port_list_string were successfully initialized at ".date("F j, Y, g:i a")." from configuration files pages $page_list_string");
// /NOTE: If $page<0 here - sensor failed to initialize, if this script was called from the daemon - it will never restart on it's own. Log record is made
<ol>This may (or may not) cause errors. You have several options:
<li> Follow <a href="?new">this link </a> and create a new config file </li>
<li> Follow <a href="?ignore-revision">this other link </a> to ignore the warning and write a new revision number to the config file</li>
<li> Follow <a href="?new&sensor_port={$port}">this link </a> and create a new config file </li>
<li> Follow <a href="?ignore-revision&sensor_port={$port}">this other link </a> to ignore the warning and write a new revision number to the config file</li>
<li> First update the version number with the link above, then manually edit/merge old and new data</li>
</ol>
WARN;
...
...
@@ -1059,17 +1076,17 @@ WARN;
exit(1);
}
$page_title="Model 393 Camera Parameters save/restore";
startPage($page_title,mainJavascript());
if($twoColumns)
$page_title="Model 393 Camera Parameters save/restore, sensor port {$port}";
printf("<td style='text-align:center'><input type='submit' name='save_%d' value='%s' id='id_save_page_%d' title='Save current parameters to the config file as page %d'/></td>",$i,array_key_exists($i,$config['paramSets'])?"Overwrite":"Save",$i,$i);
printf("<td style='text-align:center'><input type='submit' name='save_%d' value='%s' id='id_save_page_%d' title='Save current parameters to the config file as page %d'/></td>",$i,array_key_exists($i,$GLOBALS['configs'][$sensor_port]['paramSets'])?"Overwrite":"Save",$i,$i);
if(($mask&$parMask)&&array_key_exists($par,$GLOBALS['configs'][$port]['paramSets'][$page])&&(!$GLOBALS['configs'][$port]['parTypes'][$par]))// / not 'text'
$page=$config['nextPage'];// / 0 is write protected
$page=$GLOBALS['configs'][$sensor_port]['nextPage'];// / 0 is write protected
if($page==$GLOBALS['protectedPage'])
$page=findNextPage($page);
// echo "\nbefore:";print_r($config);
$config['paramSets'][$page]=elphel_get_P_arr($sensor_port,$config['groups']);// / 'text' parameters will be just ignored
$config['paramSets'][$page]['comment']="Saved on ".date("F j, Y, g:i a");
$config['paramSets'][$page]['timestamp']=time();
// echo "\nafter:";print_r($config);
$config['nextPage']=findNextPage($page);
$GLOBALS['configs'][$sensor_port]['paramSets'][$page]=elphel_get_P_arr($sensor_port,$GLOBALS['configs'][$sensor_port]['groups']);// / 'text' parameters will be just ignored
$GLOBALS['configs'][$sensor_port]['paramSets'][$page]['comment']="Saved on ".date("F j, Y, g:i a");
<FPGATEST>"Replace the image from the sensor with the internally generated test pattern. Currently only two values are supported: 0 - npormal image, 1 horizontal gradient.</FPGATEST>
<TESTSENSOR>"Sensor internal test modes: 0x10000 - enable, lower bits - test mode value"</TESTSENSOR>
<COLOR>"Compressor modes (only modes 0..2 can be processed with standard libjpeg):`
0 - mono6, monochrome (color YCbCr 4:2:0 with zeroed out color componets)`
1 - color, YCbCr 4:2:0, 3x3 pixels`
0 - color, YCbCr 4:2:0, 3x3 pixels`
1 - mono6, monochrome (color YCbCr 4:2:0 with zeroed out color componets)`
2 - jp46 - original jp4, encoded as 4:2:0 with zeroed color components`
3 - jp46dc, modified jp46 so each color component uses individual DC diffenential encoding`
4 - reserved for color with 5x5 conversion (not yet implemented)`