Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autocampars
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-apps-autocampars
Commits
065636d7
Commit
065636d7
authored
Nov 20, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.elphel.com:Elphel/elphel-apps-autocampars
parents
f7bec35a
f7969691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
autocampars.php
src/autocampars.php
+3
-0
No files found.
src/autocampars.php
View file @
065636d7
...
@@ -1095,7 +1095,10 @@ function init_cameras(){ // $page) { init can only be from default page as page
...
@@ -1095,7 +1095,10 @@ function init_cameras(){ // $page) { init can only be from default page as page
elphel_set_P_arr
(
$GLOBALS
[
'master_port'
],
$GLOBALS
[
'trig_pars'
]);
// set other parameters - they will not take effect immediately
elphel_set_P_arr
(
$GLOBALS
[
'master_port'
],
$GLOBALS
[
'trig_pars'
]);
// set other parameters - they will not take effect immediately
usleep
(
$GLOBALS
[
'camera_state_arr'
][
'max_frame_time'
]);
usleep
(
$GLOBALS
[
'camera_state_arr'
][
'max_frame_time'
]);
if
(
$trig_period
){
if
(
$trig_period
){
// The line below applies the parameter in a normal way - otherwise, if unlucky, TRIG_PERIOD can jump
// between 1 and $trig_period.
elphel_set_P_value
(
$GLOBALS
[
'master_port'
],
ELPHEL_TRIG_PERIOD
,
$trig_period
,
0
);
elphel_set_P_value
(
$GLOBALS
[
'master_port'
],
ELPHEL_TRIG_PERIOD
,
$trig_period
,
0
);
// Set parameter immediately
elphel_set_P_value
(
$GLOBALS
[
'master_port'
],
ELPHEL_TRIG_PERIOD
,
$trig_period
,
ELPHEL_CONST_FRAME_IMMED
);
elphel_set_P_value
(
$GLOBALS
[
'master_port'
],
ELPHEL_TRIG_PERIOD
,
$trig_period
,
ELPHEL_CONST_FRAME_IMMED
);
log_msg
(
"Started camera in periodic self-triggered mode, period = "
.
(
0.00000001
*
$trig_period
)
.
" s"
,
3
);
log_msg
(
"Started camera in periodic self-triggered mode, period = "
.
(
0.00000001
*
$trig_period
)
.
" s"
,
3
);
}
else
{
// manually advance frames
}
else
{
// manually advance frames
...
...
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