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
8ddcb3ac
Commit
8ddcb3ac
authored
Jun 07, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added FRAMES_AHEAD=5 for synced FFC run
parent
047fdb5e
Changes
1
Show 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 @
8ddcb3ac
...
...
@@ -76,6 +76,8 @@ public class LwirReader {
public
static
final
int
FRAMES_SKIP
=
4
;
public
static
final
int
MAX_THREADS
=
100
;
// combine from all classes?
public
static
final
int
FRAMES_AHEAD
=
5
;
/** Logger for this class. */
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
LwirReader
.
class
);
...
...
@@ -400,7 +402,7 @@ public class LwirReader {
String
hex_chan
=
String
.
format
(
"0x%x"
,
channels
);
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+
// "&SENSOR_REGS67=0&*SENSOR_REGS67="+hex_chan;
Document
dom
=
null
;
...
...
@@ -427,7 +429,7 @@ public class LwirReader {
LOGGER
.
error
(
"programLWIRCamera() in "
+
url
+
" - SAX error: "
+
se
.
toString
());
return
false
;
}
for
(
int
i
=
0
;
i
<
FRAMES_SKIP
;
i
++)
{
for
(
int
i
=
0
;
i
<
(
FRAMES_SKIP
+
FRAMES_AHEAD
)
;
i
++)
{
if
(!
skipFrame
(
lrp
))
{
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