Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
imagej-elphel
Commits
f1c19f00
Commit
f1c19f00
authored
Jun 11, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lwir' of git.elphel.com:Elphel/imagej-elphel into lwir
parents
52884d5b
8ddcb3ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
LwirReader.java
src/main/java/com/elphel/imagej/lwir/LwirReader.java
+4
-2
No files found.
src/main/java/com/elphel/imagej/lwir/LwirReader.java
View file @
f1c19f00
...
@@ -76,6 +76,8 @@ public class LwirReader {
...
@@ -76,6 +76,8 @@ public class LwirReader {
public
static
final
int
FRAMES_SKIP
=
4
;
public
static
final
int
FRAMES_SKIP
=
4
;
public
static
final
int
MAX_THREADS
=
100
;
// combine from all classes?
public
static
final
int
MAX_THREADS
=
100
;
// combine from all classes?
public
static
final
int
FRAMES_AHEAD
=
5
;
/** Logger for this class. */
/** Logger for this class. */
private
static
final
Logger
LOGGER
=
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
LwirReader
.
class
);
LoggerFactory
.
getLogger
(
LwirReader
.
class
);
...
@@ -400,7 +402,7 @@ public class LwirReader {
...
@@ -400,7 +402,7 @@ public class LwirReader {
String
hex_chan
=
String
.
format
(
"0x%x"
,
channels
);
String
hex_chan
=
String
.
format
(
"0x%x"
,
channels
);
String
url
=
"http://"
+
lrp
.
lwir_ip
+
"/parsedit.php?immediate&sensor_port="
+
chn
+
String
url
=
"http://"
+
lrp
.
lwir_ip
+
"/parsedit.php?immediate&sensor_port="
+
chn
+
"&SENSOR_REGS67=0!"
+
hex_chan
;
"&SENSOR_REGS67=0
*"
+
FRAMES_AHEAD
+
"
!"
+
hex_chan
;
// String url = "http://"+lrp.lwir_ip+"/parsedit.php?immediate&sensor_port="+chn+
// String url = "http://"+lrp.lwir_ip+"/parsedit.php?immediate&sensor_port="+chn+
// "&SENSOR_REGS67=0&*SENSOR_REGS67="+hex_chan;
// "&SENSOR_REGS67=0&*SENSOR_REGS67="+hex_chan;
Document
dom
=
null
;
Document
dom
=
null
;
...
@@ -427,7 +429,7 @@ public class LwirReader {
...
@@ -427,7 +429,7 @@ public class LwirReader {
LOGGER
.
error
(
"programLWIRCamera() in "
+
url
+
" - SAX error: "
+
se
.
toString
());
LOGGER
.
error
(
"programLWIRCamera() in "
+
url
+
" - SAX error: "
+
se
.
toString
());
return
false
;
return
false
;
}
}
for
(
int
i
=
0
;
i
<
FRAMES_SKIP
;
i
++)
{
for
(
int
i
=
0
;
i
<
(
FRAMES_SKIP
+
FRAMES_AHEAD
)
;
i
++)
{
if
(!
skipFrame
(
lrp
))
{
if
(!
skipFrame
(
lrp
))
{
LOGGER
.
error
(
"programLWIRCamera():Failed to skip frame"
);
LOGGER
.
error
(
"programLWIRCamera():Failed to skip frame"
);
}
}
...
...
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