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
831ef1ed
Commit
831ef1ed
authored
Feb 14, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed sensor_code for mt9f002
parent
f384910b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
autocampars.php
src/autocampars.php
+5
-1
No files found.
src/autocampars.php
View file @
831ef1ed
...
...
@@ -605,6 +605,7 @@ function detect_camera(){
log_msg
(
"detect_camera()"
,
0
);
$GLOBALS
[
'camera_state_arr'
][
'max_latency'
]
=
5
;
// frames to manually advance
write_php_ini
(
$GLOBALS
[
'camera_state_arr'
],
$GLOBALS
[
'camera_state_path'
]
);
// 52 is MT9x00x, update later
$sensor_code
=
52
;
log_msg
(
"detect_camera():
\n
"
.
str_sensors
(
$GLOBALS
[
'sensors'
]),
0
);
log_msg
(
"ports:"
.
implode
(
", "
,
$GLOBALS
[
'ports'
]));
...
...
@@ -740,9 +741,12 @@ function detect_camera(){
$output
[
$k
]
=
str_replace
(
'\n'
,
"
\n
"
,
$v
);
}
log_msg
(
"COMMAND_OUTPUT for 'autocampars.py localhost py393 hargs-
power_par12
':
\n
"
.
log_msg
(
"COMMAND_OUTPUT for 'autocampars.py localhost py393 hargs-
hispi
':
\n
"
.
print_r
(
$output
,
1
)
.
"
\n
command return value="
.
$retval
.
"
\n
"
);
// sensor's code from c313a.h
$sensor_code
=
56
;
}
else
{
respond_xml
(
''
,
'Do not know how to initialize master camera '
.
print_r
(
$GLOBALS
[
'camera_state_arr'
][
'is_mt9p006'
],
1
));
}
...
...
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