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
076f137b
Commit
076f137b
authored
Aug 23, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ initial exposure before restroring the saved one
parent
e1281cfb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
168 additions
and
161 deletions
+168
-161
autocampars.php
src/autocampars.php
+168
-161
No files found.
src/autocampars.php
View file @
076f137b
...
...
@@ -901,7 +901,8 @@ function init_cameras(){ // $page) { init can only be from default page as page
$mask
=
1
;
// init parameters
// TODO: Fix TRIG_MASTER early, before anything else
// $trig_last_names = array();
$trig_par_names
=
array
(
'TRIG'
,
'TRIG_CONDITION'
,
'TRIG_MASTER'
,
'TRIG_PERIOD'
,
'TRIG_OUT'
);
// adding EXPOS - because setting with normal pars can desync
$trig_par_names
=
array
(
'TRIG'
,
'TRIG_CONDITION'
,
'TRIG_MASTER'
,
'TRIG_PERIOD'
,
'TRIG_OUT'
,
'EXPOS'
);
$delayed_par_names
=
array
(
'COMPRESSOR_RUN'
,
'SENSOR_RUN'
,
'DAEMON_EN'
,
'DAEMON_EN_AUTOEXPOSURE'
,
'DAEMON_EN_STREAMER'
,
'DAEMON_EN_CCAMFTP'
,
'DAEMON_EN_CAMOGM'
,
'DAEMON_EN_TEMPERATURE'
);
...
...
@@ -985,9 +986,15 @@ function init_cameras(){ // $page) { init can only be from default page as page
$frame_to_set
=
elphel_get_frame
(
$GLOBALS
[
'master_port'
]
)
+
0
;
// ELPHEL_CONST_FRAME_DEAFAULT_AHEAD;
log_msg
(
"port "
.
$port
.
" setting @"
.
$frame_to_set
.
" (now "
.
elphel_get_frame
(
$GLOBALS
[
'master_port'
])
.
"): "
.
print_r
(
$all_parToSet
[
$port
],
1
));
//set initial exposure - the correct value will be set at PARAMETERS_PRESET
log_msg
(
"port "
.
$port
.
" setting @"
.
$frame_to_set
.
" init exposure: EXPOS= 1000"
);
elphel_set_P_value
(
$port
,
ELPHEL_EXPOS
,
1000
,
$frame_to_set
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// set all in ASAP mode
elphel_set_P_arr
(
$port
,
$all_parToSet
[
$port
],
$frame_to_set
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
$frame_to_set
+=
2
;
// frame #2
log_msg
(
"port "
.
$port
.
" setting @"
.
$frame_to_set
.
" SENSOR_RUN= "
.
$all_sensor_run
[
$port
][
'SENSOR_RUN'
],
0
);
elphel_set_P_arr
(
$port
,
$all_sensor_run
[
$port
],
$frame_to_set
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
...
...
@@ -1037,7 +1044,7 @@ function init_cameras(){ // $page) { init can only be from default page as page
// Camera should be left in a free running mode?
log_msg
(
'Finalizing, current frames: '
.
file_get_contents
(
'/sys/devices/soc0/elphel393-framepars@0/all_frames'
));
log_msg
(
"Remainig trigger parameters: "
.
print_r
(
$GLOBALS
[
'trig_pars'
],
1
));
log_msg
(
"Remaini
n
g trigger parameters: "
.
print_r
(
$GLOBALS
[
'trig_pars'
],
1
));
if
(
array_key_exists
(
'TRIG'
,
$GLOBALS
[
'trig_pars'
])
&&
(
$GLOBALS
[
'trig_pars'
][
'TRIG'
]
===
0
)){
...
...
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