Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-init
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-init
Commits
16c172ee
Commit
16c172ee
authored
Nov 21, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split 'eyesis' parameter actions
parent
261c0dc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
init_elphel393.py
src/init_elphel393.py
+5
-3
No files found.
src/init_elphel393.py
View file @
16c172ee
...
@@ -178,7 +178,9 @@ switch = {
...
@@ -178,7 +178,9 @@ switch = {
if
len
(
sys
.
argv
)
>
1
:
if
len
(
sys
.
argv
)
>
1
:
switch
.
update
(
eval
(
sys
.
argv
[
1
]))
switch
.
update
(
eval
(
sys
.
argv
[
1
]))
#pre
#pre
os
.
mkdir
(
'/var/volatile/html'
)
volatile_html
=
'/var/volatile/html'
if
not
os
.
path
.
exists
(
volatile_html
):
os
.
mkdir
(
volatile_html
)
#need to disable fan for eyesis
#need to disable fan for eyesis
if
switch
[
'eyesis'
]
!=
0
:
if
switch
[
'eyesis'
]
!=
0
:
...
@@ -227,7 +229,7 @@ for i in range(1,5):
...
@@ -227,7 +229,7 @@ for i in range(1,5):
time
.
sleep
(
1
)
time
.
sleep
(
1
)
#5
#5
if
switch
[
'eyesis'
]
!=
0
:
if
(
switch
[
'eyesis'
]
!=
0
)
and
(
switch
[
'framepars'
]
!=
0
)
:
for
i
in
range
(
4
):
for
i
in
range
(
4
):
sysfs_content
=
init_port_readsysfs
(
"sensor"
+
str
(
i
)
+
"0"
)
sysfs_content
=
init_port_readsysfs
(
"sensor"
+
str
(
i
)
+
"0"
)
if
sysfs_content
==
"mt9p006"
:
if
sysfs_content
==
"mt9p006"
:
...
@@ -275,7 +277,7 @@ if switch ['autocampars'] == 1:
...
@@ -275,7 +277,7 @@ if switch ['autocampars'] == 1:
shout
(
"autocampars.php --init"
)
shout
(
"autocampars.php --init"
)
#flips for eyesis head cams
#flips for eyesis head cams
if
switch
[
'eyesis'
]
==
1
:
if
(
switch
[
'eyesis'
]
==
1
)
and
(
switch
[
'framepars'
]
!=
0
)
:
shout
(
"wget -O /dev/null
\"
localhost/parsedit.php?immediate&sensor_port=3&MULTI_FLIPV=4
\"
"
)
shout
(
"wget -O /dev/null
\"
localhost/parsedit.php?immediate&sensor_port=3&MULTI_FLIPV=4
\"
"
)
shout
(
"wget -O /dev/null
\"
localhost/parsedit.php?immediate&sensor_port=2&MULTI_FLIPV=3
\"
"
)
shout
(
"wget -O /dev/null
\"
localhost/parsedit.php?immediate&sensor_port=2&MULTI_FLIPV=3
\"
"
)
shout
(
"wget -O /dev/null
\"
localhost/parsedit.php?immediate&sensor_port=0&MULTI_FLIPV=4
\"
"
)
shout
(
"wget -O /dev/null
\"
localhost/parsedit.php?immediate&sensor_port=0&MULTI_FLIPV=4
\"
"
)
...
...
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