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
7033219d
Commit
7033219d
authored
Aug 23, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed: not applying EXPOS to all channels
parent
076f137b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
autocampars.php
src/autocampars.php
+5
-2
No files found.
src/autocampars.php
View file @
7033219d
...
@@ -901,8 +901,7 @@ function init_cameras(){ // $page) { init can only be from default page as page
...
@@ -901,8 +901,7 @@ function init_cameras(){ // $page) { init can only be from default page as page
$mask
=
1
;
// init parameters
$mask
=
1
;
// init parameters
// TODO: Fix TRIG_MASTER early, before anything else
// TODO: Fix TRIG_MASTER early, before anything else
// $trig_last_names = array();
// $trig_last_names = array();
// adding EXPOS - because setting with normal pars can desync
$trig_par_names
=
array
(
'TRIG'
,
'TRIG_CONDITION'
,
'TRIG_MASTER'
,
'TRIG_PERIOD'
,
'TRIG_OUT'
);
$trig_par_names
=
array
(
'TRIG'
,
'TRIG_CONDITION'
,
'TRIG_MASTER'
,
'TRIG_PERIOD'
,
'TRIG_OUT'
,
'EXPOS'
);
$delayed_par_names
=
array
(
'COMPRESSOR_RUN'
,
'SENSOR_RUN'
,
'DAEMON_EN'
,
$delayed_par_names
=
array
(
'COMPRESSOR_RUN'
,
'SENSOR_RUN'
,
'DAEMON_EN'
,
'DAEMON_EN_AUTOEXPOSURE'
,
'DAEMON_EN_STREAMER'
,
'DAEMON_EN_AUTOEXPOSURE'
,
'DAEMON_EN_STREAMER'
,
'DAEMON_EN_CCAMFTP'
,
'DAEMON_EN_CAMOGM'
,
'DAEMON_EN_TEMPERATURE'
);
'DAEMON_EN_CCAMFTP'
,
'DAEMON_EN_CAMOGM'
,
'DAEMON_EN_TEMPERATURE'
);
...
@@ -1010,6 +1009,10 @@ function init_cameras(){ // $page) { init can only be from default page as page
...
@@ -1010,6 +1009,10 @@ function init_cameras(){ // $page) { init can only be from default page as page
log_msg
(
"port "
.
$port
.
" setting @"
.
$frame_to_set
.
" DAEMON_EN= "
.
$all_daemon_en
[
$port
][
'DAEMON_EN'
],
0
);
log_msg
(
"port "
.
$port
.
" setting @"
.
$frame_to_set
.
" DAEMON_EN= "
.
$all_daemon_en
[
$port
][
'DAEMON_EN'
],
0
);
elphel_set_P_arr
(
$port
,
$all_daemon_en
[
$port
],
$frame_to_set
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_arr
(
$port
,
$all_daemon_en
[
$port
],
$frame_to_set
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// set exposure here
log_msg
(
"port "
.
$port
.
" setting @"
.
$frame_to_set
.
" restoring exposure: EXPOS= "
.
$all_parToSet
[
$port
][
'EXPOS'
]
);
elphel_set_P_value
(
$port
,
ELPHEL_EXPOS
,
$all_parToSet
[
$port
][
'EXPOS'
],
$frame_to_set
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
if
(
$GLOBALS
[
'master_port'
]
==
$port
)
{
if
(
$GLOBALS
[
'master_port'
]
==
$port
)
{
$GLOBALS
[
'camera_state_arr'
][
'frames_skip'
]
=
$frame_to_set
-
elphel_get_frame
(
$GLOBALS
[
'master_port'
]);
$GLOBALS
[
'camera_state_arr'
][
'frames_skip'
]
=
$frame_to_set
-
elphel_get_frame
(
$GLOBALS
[
'master_port'
]);
$GLOBALS
[
'camera_state_arr'
][
'frames_skip_more'
]
=
$frame_to_set
-
elphel_get_frame
(
$GLOBALS
[
'master_port'
])
-
$GLOBALS
[
'camera_state_arr'
][
'frames_skip'
];
$GLOBALS
[
'camera_state_arr'
][
'frames_skip_more'
]
=
$frame_to_set
-
elphel_get_frame
(
$GLOBALS
[
'master_port'
])
-
$GLOBALS
[
'camera_state_arr'
][
'frames_skip'
];
...
...
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