Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
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-web-393
Commits
70820648
Commit
70820648
authored
Nov 07, 2025
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time setting fro the IMS camera w/o sensors
parent
fcfa1fc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
multicam3.js
src/multicam/multicam3.js
+14
-3
parsedit.php
src/php_top/parsedit.php
+5
-2
No files found.
src/multicam/multicam3.js
View file @
70820648
...
@@ -229,6 +229,8 @@ function get_ports(){
...
@@ -229,6 +229,8 @@ function get_ports(){
var
tmp_port
=
new
Port
({
port
:
$
(
this
).
attr
(
"port"
),
index
:
$
(
this
).
attr
(
"index"
),
sensor_type
:
$
(
this
).
html
()});
var
tmp_port
=
new
Port
({
port
:
$
(
this
).
attr
(
"port"
),
index
:
$
(
this
).
attr
(
"index"
),
sensor_type
:
$
(
this
).
html
()});
cams
[
index
].
ports
.
push
(
tmp_port
);
cams
[
index
].
ports
.
push
(
tmp_port
);
init_port
(
index
,
cams
[
index
].
ports
.
length
-
1
);
init_port
(
index
,
cams
[
index
].
ports
.
length
-
1
);
}
else
{
init_noport
(
index
);
// just set time for ims-only "camera"
}
}
});
});
// check camogm is alive
// check camogm is alive
...
@@ -566,11 +568,20 @@ function init_port(cam_i,port_i){
...
@@ -566,11 +568,20 @@ function init_port(cam_i,port_i){
cams
[
this
.
cam_i
].
ports
[
this
.
port_i
].
bits
=
bits
;
cams
[
this
.
cam_i
].
ports
[
this
.
port_i
].
bits
=
bits
;
}
}
});
});
}
}
function
init_noport
(
cam_i
){
var
date_time
=
new
Date
();
var
url
=
"http://"
+
cams
[
cam_i
].
ip
+
"/parsedit.php?immediate&_time="
+
date_time
.
getTime
();
// alert("init_noport("+cam_i+"): "+url);
$
.
ajax
({
url
:
url
,
cam_i
:
cam_i
,
success
:
function
(){
// res){
// alert("init_noport("+cam_i+") res.text( )= "+$(res).text());
}
});
}
// * if any attribute is not initialized it will be NaN
// * if any attribute is not initialized it will be NaN
// * if all do not match then take the last one
// * if all do not match then take the last one
function
button_update_state
(
btn
){
function
button_update_state
(
btn
){
...
...
src/php_top/parsedit.php
View file @
70820648
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
$PARS_FRAMES_MASK
=
$PARS_FRAMES
-
1
;
$PARS_FRAMES_MASK
=
$PARS_FRAMES
-
1
;
$sensor_port
=
0
;
/// TODO: NC393 - add sensor port control, initially will use $sensor_port=0 for all php functions that require it
$sensor_port
=
0
;
/// TODO: NC393 - add sensor port control, initially will use $sensor_port=0 for all php functions that require it
$autocampars
=
'/www/pages/autocampars.php'
;
$autocampars
=
'/www/pages/autocampars.php'
;
$descriptions
=
getParDescriptions
(
$autocampars
);
//
$descriptions=getParDescriptions($autocampars);
$default_ahead
=
3
;
$default_ahead
=
3
;
$maxahead
=
6
;
/// maximal ahead of the current frame that tasks can currently be set to driver; //NC393 - is it the same?
$maxahead
=
6
;
/// maximal ahead of the current frame that tasks can currently be set to driver; //NC393 - is it the same?
$minahead
=
4
;
/// skip to frame $minahead from the soonest next task before programming
$minahead
=
4
;
/// skip to frame $minahead from the soonest next task before programming
...
@@ -160,6 +160,8 @@
...
@@ -160,6 +160,8 @@
if
(
array_key_exists
(
'sensor_port'
,
$_GET
))
{
if
(
array_key_exists
(
'sensor_port'
,
$_GET
))
{
$GLOBALS
[
sensor_port
]
=
(
myval
(
$_GET
[
'sensor_port'
]))
&
3
;
$GLOBALS
[
sensor_port
]
=
(
myval
(
$_GET
[
'sensor_port'
]))
&
3
;
}
else
{
$GLOBALS
[
sensor_port
]
=
-
1
;
}
}
$page_title
=
"Default control/test page for the NC393L camera, sensor port "
.
$GLOBALS
[
sensor_port
];
$page_title
=
"Default control/test page for the NC393L camera, sensor port "
.
$GLOBALS
[
sensor_port
];
if
((
count
(
$_GET
)
==
0
)
||
((
count
(
$_GET
)
==
1
)
&&
array_key_exists
(
'sensor_port'
,
$_GET
)))
{
if
((
count
(
$_GET
)
==
0
)
||
((
count
(
$_GET
)
==
1
)
&&
array_key_exists
(
'sensor_port'
,
$_GET
)))
{
...
@@ -198,7 +200,7 @@
...
@@ -198,7 +200,7 @@
}
else
{
// return XML page with specified parameters values
}
else
{
// return XML page with specified parameters values
addGammas
(
$todo
);
addGammas
(
$todo
);
$names
=
array_merge
(
extractNames
(
$global_params
),
extractNames
(
$frame_params
));
$names
=
array_merge
(
extractNames
(
$global_params
),
extractNames
(
$frame_params
));
$currentParameters
=
elphel_get_P_arr
(
$GLOBALS
[
sensor_port
],
$names
)
;
$currentParameters
=
(
$GLOBALS
[
sensor_port
]
>=
0
)
?
elphel_get_P_arr
(
$GLOBALS
[
sensor_port
],
$names
)
:
[]
;
applyPost
(
$todo
,
true
);
// no final wait
applyPost
(
$todo
,
true
);
// no final wait
$msg
=
"<?xml version=
\"
1.0
\"
?>
\n
<parameters>
\n
"
;
$msg
=
"<?xml version=
\"
1.0
\"
?>
\n
<parameters>
\n
"
;
foreach
(
$currentParameters
as
$key
=>
$value
)
{
foreach
(
$currentParameters
as
$key
=>
$value
)
{
...
@@ -214,6 +216,7 @@
...
@@ -214,6 +216,7 @@
exit
(
0
);
// that's all
exit
(
0
);
// that's all
}
}
}
}
$descriptions
=
getParDescriptions
(
$autocampars
);
// startPage();
// startPage();
startPage
(
$page_title
,
mainJavascript
(
$refreshSig
));
startPage
(
$page_title
,
mainJavascript
(
$refreshSig
));
...
...
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