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
29734919
Commit
29734919
authored
Nov 25, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed DAEMON_EN bit (autoexposuer was not active)
parent
5e094fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
autocampars.php
src/autocampars.php
+15
-14
No files found.
src/autocampars.php
View file @
29734919
...
...
@@ -925,21 +925,22 @@ function init_cameras(){ // $page) { init can only be from default page as page
foreach
(
$GLOBALS
[
'ports'
]
as
$port
)
{
if
(
!
isset
(
$all_parLater
[
$port
][
'SENSOR_RUN'
]))
$all_parLater
[
$port
][
'SENSOR_RUN'
]
=
2
;
if
(
!
isset
(
$all_parLater
[
$port
][
'COMPRESSOR_RUN'
]))
$all_parLater
[
$port
][
'COMPRESSOR_RUN'
]
=
2
;
if
(
isset
(
$all_parLater
[
$port
][
'DAEMON_EN'
]
))
{
// 'DAEMON_EN' has prfececdence over individual bits
$
daemon_en
=
$all_parLater
[
$port
][
'DAEMON_EN'
];
$all_parLater
[
$port
][
'DAEMON_EN_AUTOEXPOSURE'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_AUTOEXPOSURE
)
&
1
;
$all_parLater
[
$port
][
'DAEMON_EN_STREAMER'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_STREAMER
)
&
1
;
$all_parLater
[
$port
][
'DAEMON_EN_CCAMFTP'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_CCAMFTP
)
&
1
;
$all_parLater
[
$port
][
'DAEMON_EN_CAMOGM'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_CAMOGM
)
&
1
;
$all_parLater
[
$port
][
'DAEMON_EN_AUTOCAMPARS'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_AUTOCAMPARS
)
&
1
;
$all_parLater
[
$port
][
'DAEMON_EN_TEMPERATURE'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_TEMPERATURE
)
&
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN'
])){
// set defaults here if none is set
$
all_parLater
[
$port
][
'DAEMON_EN'
]
=
// set default values
(
1
<<
ELPHEL_CONST_DAEMON_BIT_AUTOEXPOSURE
)
|
(
1
<<
ELPHEL_CONST_DAEMON_BIT_STREAMER
)
|
(
0
<<
ELPHEL_CONST_DAEMON_BIT_CCAMFTP
)
|
(
0
<<
ELPHEL_CONST_DAEMON_BIT_CAMOGM
)
|
(
0
<<
ELPHEL_CONST_DAEMON_BIT_AUTOCAMPARS
)
|
(
0
<<
ELPHEL_CONST_DAEMON_BIT_TEMPERATURE
)
;
}
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_AUTOEXPOSURE'
]))
$all_parLater
[
$port
][
'DAEMON_EN_AUTOEXPOSURE'
]
=
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_STREAMER'
]))
$all_parLater
[
$port
][
'DAEMON_EN_STREAMER'
]
=
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_CCAMFTP'
]))
$all_parLater
[
$port
][
'DAEMON_EN_CCAMFTP'
]
=
0
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_CAMOGM'
]))
$all_parLater
[
$port
][
'DAEMON_EN_CAMOGM'
]
=
0
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_AUTOCAMPARS'
]))
$all_parLater
[
$port
][
'DAEMON_EN_AUTOCAMPARS'
]
=
0
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_TEMPERATURE'
]))
$all_parLater
[
$port
][
'DAEMON_EN_TEMPERATURE'
]
=
0
;
$daemon_en
=
$all_parLater
[
$port
][
'DAEMON_EN'
];
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_AUTOEXPOSURE'
]))
$all_parLater
[
$port
][
'DAEMON_EN_AUTOEXPOSURE'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_AUTOEXPOSURE
)
&
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_STREAMER'
]))
$all_parLater
[
$port
][
'DAEMON_EN_STREAMER'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_STREAMER
)
&
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_CCAMFTP'
]))
$all_parLater
[
$port
][
'DAEMON_EN_CCAMFTP'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_CCAMFTP
)
&
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_CAMOGM'
]))
$all_parLater
[
$port
][
'DAEMON_EN_CAMOGM'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_CAMOGM
)
&
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_AUTOCAMPARS'
]))
$all_parLater
[
$port
][
'DAEMON_EN_AUTOCAMPARS'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_AUTOCAMPARS
)
&
1
;
if
(
!
isset
(
$all_parLater
[
$port
][
'DAEMON_EN_TEMPERATURE'
]))
$all_parLater
[
$port
][
'DAEMON_EN_TEMPERATURE'
]
=
(
$daemon_en
>>
ELPHEL_CONST_DAEMON_BIT_TEMPERATURE
)
&
1
;
$all_parLater
[
$port
][
'DAEMON_EN'
]
=
((
$all_parLater
[
$port
][
'DAEMON_EN_AUTOEXPOSURE'
]
&
1
)
<<
ELPHEL_CONST_DAEMON_BIT_AUTOEXPOSURE
)
|
((
$all_parLater
[
$port
][
'DAEMON_EN_STREAMER'
]
&
1
)
<<
ELPHEL_CONST_DAEMON_BIT_STREAMER
)
|
...
...
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