Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
36289ff4
Commit
36289ff4
authored
Sep 29, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed timestamps over sync
parent
e5ec3eb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
pgm_functions.c
src/drivers/elphel/pgm_functions.c
+8
-2
No files found.
src/drivers/elphel/pgm_functions.c
View file @
36289ff4
...
...
@@ -1432,6 +1432,9 @@ int pgm_triggermode(int sensor_port, ///< sensor port number (0..3
if
(
camsync_mode
.
trig
)
{
// if trigger mode, enable camsync module, if off - do nothing
camsync_mode
.
en
=
1
;
camsync_mode
.
en_set
=
1
;
//When does it need to be disabled?
camsync_mode
.
ts_chns
=
(
thispars
->
pars
[
P_EXTERN_TIMESTAMP
]
?
1
:
0
)
<<
sensor_port
;
camsync_mode
.
ts_chns_set
=
1
<<
sensor_port
;
}
camsync_mode
.
trig_set
=
1
;
// set directly, bypassing sequencer as it may fail with wrong trigger
...
...
@@ -2626,8 +2629,11 @@ int pgm_trigseq (int sensor_port, ///< sensor port number (0..3
}
// P_XMIT_TIMESTAMP changed? (0 - internal sequencer)
if
(
FRAMEPAR_MODIFIED
(
P_XMIT_TIMESTAMP
))
{
camsync_mode
.
ts_chns
=
(
thispars
->
pars
[
P_EXTERN_TIMESTAMP
]
?
1
:
0
)
<<
sensor_port
;
camsync_mode
.
ts_chns_set
=
1
<<
sensor_port
;
camsync_mode
.
en_snd
=
(
thispars
->
pars
[
P_XMIT_TIMESTAMP
]
?
1
:
0
);
camsync_mode
.
en_snd_set
=
1
;
// camsync_mode.ts_chns = (thispars->pars[P_EXTERN_TIMESTAMP]?1:0) << sensor_port;
// camsync_mode.ts_chns_set = 1 << sensor_port;
}
if
(
update_master_channel
){
camsync_mode
.
master_chn
=
sensor_port
;
...
...
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