Commit 6a48c858 authored by Andrey Filippov's avatar Andrey Filippov

fixed for lepton35

parent b1272551
...@@ -127,13 +127,17 @@ ...@@ -127,13 +127,17 @@
if ($sensor!="none"){ if ($sensor!="none"){
$sensor_type = $sensor; $sensor_type = $sensor;
$sample_port = $i; $sample_port = $i;
$sensor_extra_height = elphel_get_P_value($i,ELPHEL_WOI_HEIGHT) - elphel_get_P_value($i,ELPHEL_SENSOR_HEIGHT);
$sandp = "http://{$_SERVER["SERVER_ADDR"]}:".($port0+$i); $sandp = "http://{$_SERVER["SERVER_ADDR"]}:".($port0+$i);
$href1 = "$sandp/bimg"; $href1 = "$sandp/bimg";
$href2 = "$sandp/mimg"; $href2 = "$sandp/mimg";
$href3 = "$sandp/tiff_palette=2/tiff_telem=1/tiff_auto=33/tiff_convert/bimg"; $href3 = "$sandp/tiff_palette=2/tiff_telem=1/tiff_auto=33/tiff_convert/bimg";
if ($sensor_type == 'boson640'){ if ($sensor_type == 'boson640'){ // lepton35
$preview_image_cmd[] = '/tiff_palette=2/tiff_telem=1/tiff_auto=33/tiff_convert/bimg'; $telem = ($sensor_extra_height > 0) ? 1 : 0;
$preview_image_cmd[] = '/tiff_palette=2/tiff_telem='.$telem.'/tiff_auto=33/tiff_convert/bimg';
} else if ($sensor_type == 'lepton35'){
$telem = ($sensor_extra_height > 0) ? -2 : 0;
$preview_image_cmd[] = '/tiff_palette=2/tiff_telem='.$telem.'/tiff_auto=33/tiff_convert/bimg';
} else { } else {
$preview_image_cmd[] = 'img'; $preview_image_cmd[] = 'img';
} }
......
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