Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
6a48c858
Commit
6a48c858
authored
Apr 26, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed for lepton35
parent
b1272551
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.php
src/index/index.php
+7
-3
No files found.
src/index/index.php
View file @
6a48c858
...
@@ -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'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment