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
4e7db803
Commit
4e7db803
authored
Apr 22, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added vospi/lepton3
parent
09543003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
+40
-2
autocampars.php
src/autocampars.php
+40
-2
No files found.
src/autocampars.php
View file @
4e7db803
...
@@ -748,9 +748,32 @@ function detect_camera(){
...
@@ -748,9 +748,32 @@ function detect_camera(){
// sensor's code from c313a.h
// sensor's code from c313a.h
$sensor_code
=
56
;
$sensor_code
=
56
;
}
else
if
(
$GLOBALS
[
'camera_state_arr'
][
'is_lepton35'
]){
// 2018/02/09: TODO: test
log_msg
(
"Initializing FPGA for VOSPI iface"
,
3
);
unset
(
$output
);
// /usr/local/verilog/hargs-hispi - does not exist yet
exec
(
'autocampars.py localhost py393 hargs-vospi'
,
$output
,
$retval
);
$GLOBALS
[
'camera_state_arr'
][
'state'
]
=
'BITSTREAM'
;
write_php_ini
(
$GLOBALS
[
'camera_state_arr'
],
$GLOBALS
[
'camera_state_path'
]
);
foreach
(
$output
as
$k
=>
$v
){
$output
[
$k
]
=
str_replace
(
'\n'
,
"
\n
"
,
$v
);
}
log_msg
(
"COMMAND_OUTPUT for 'autocampars.py localhost py393 hargs-vospi':
\n
"
.
print_r
(
$output
,
1
)
.
"
\n
command return value="
.
$retval
.
"
\n
"
);
// sensor's code from c313a.h
$sensor_code
=
65
;
}
else
{
}
else
{
respond_xml
(
''
,
'Do not know how to initialize master camera '
.
print_r
(
$GLOBALS
[
'camera_state_arr'
][
'is_mt9p006'
],
1
));
respond_xml
(
''
,
'Do not know how to initialize master camera '
.
print_r
(
$GLOBALS
[
'camera_state_arr'
][
'is_mt9p006'
],
1
)
.
print_r
(
$GLOBALS
[
'camera_state_arr'
][
'is_lepton35'
],
1
)
);
}
}
// can not exit until joined
// can not exit until joined
...
@@ -1542,6 +1565,9 @@ function get_application_mode() {
...
@@ -1542,6 +1565,9 @@ function get_application_mode() {
return
get_mt9f002_mode
();
return
get_mt9f002_mode
();
case
'Eyesis4pi393'
:
case
'Eyesis4pi393'
:
return
get_eyesis_mode
();
return
get_eyesis_mode
();
case
'LEPTON35'
:
return
get_lepton35_mode
();
default
:
default
:
respond_xml
(
''
,
'Unknown camera type, '
.
print_r
(
$GLOBALS
[
'camera_state_arr'
],
1
));
respond_xml
(
''
,
'Unknown camera type, '
.
print_r
(
$GLOBALS
[
'camera_state_arr'
],
1
));
}
}
...
@@ -1610,6 +1636,18 @@ function get_mt9f002_mode() {
...
@@ -1610,6 +1636,18 @@ function get_mt9f002_mode() {
return
$mode
;
return
$mode
;
}
}
function
get_lepton35_mode
()
{
$mode
=
get_mt9p006_mode
();
$GLOBALS
[
'camera_state_arr'
][
'is_mt9p006'
]
=
0
;
$GLOBALS
[
'camera_state_arr'
][
'is_lepton35'
]
=
1
;
write_php_ini
(
$GLOBALS
[
'camera_state_arr'
],
$GLOBALS
[
'camera_state_path'
]
);
return
$mode
;
}
/**
/**
* Eyesis application modes:
* Eyesis application modes:
* 1001 - top, slave, controls own power, default IP = 161
* 1001 - top, slave, controls own power, default IP = 161
...
...
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