Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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-camogm
Commits
6b278096
Commit
6b278096
authored
Oct 12, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get/set parameter fixes
parent
bb98a520
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
camogm_interface.php
src/camogmgui/camogm_interface.php
+14
-9
No files found.
src/camogmgui/camogm_interface.php
View file @
6b278096
...
...
@@ -225,57 +225,62 @@ else if (($cmd=="umount") || ($cmd=="unmount")) { // unmount media like HDD
}
else
if
(
$cmd
==
"set_quality"
)
{
$quality
=
$_GET
[
'quality'
];
$sensor_port
=
$_GET
[
'sensor_port'
];
$thisFrameNumber
=
elphel_get_frame
();
elphel_set_P_value
(
ELPHEL_QUALITY
,
$quality
+
0
,
$thisFrameNumber
);
$thisFrameNumber
=
elphel_get_frame
(
$sensor_port
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_QUALITY
,
$quality
+
0
,
$thisFrameNumber
);
//$thisFrameNumber=elphel_get_frame();
//elphel_wait_frame_abs($thisFrameNumber+3);
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
echo
elphel_get_P_value
(
ELPHEL_QUALITY
);
echo
elphel_get_P_value
(
$sensor_port
,
ELPHEL_QUALITY
);
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
}
else
if
(
$cmd
==
"get_quality"
)
{
$sensor_port
=
$_GET
[
'sensor_port'
];
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
echo
elphel_get_P_value
(
ELPHEL_QUALITY
);
echo
elphel_get_P_value
(
$sensor_port
,
ELPHEL_QUALITY
);
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
}
else
if
(
$cmd
==
"set_parameter"
)
{
$pname
=
$_GET
[
'pname'
];
$pvalue
=
$_GET
[
'pvalue'
];
$sensor_port
=
$_GET
[
'sensor_port'
];
$thisFrameNumber
=
elphel_get_frame
();
$thisFrameNumber
=
elphel_get_frame
(
$sensor_port
);
$constant
=
constant
(
"ELPHEL_
$pname
"
);
elphel_set_P_value
(
$constant
,
$pvalue
+
0
,
$thisFrameNumber
);
elphel_set_P_value
(
$
sensor_port
,
$
constant
,
$pvalue
+
0
,
$thisFrameNumber
);
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
echo
elphel_get_P_value
(
$constant
);
echo
elphel_get_P_value
(
$
sensor_port
,
$
constant
);
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
}
else
if
(
$cmd
==
"get_parameter"
)
{
$pname
=
$_GET
[
'pname'
];
$sensor_port
=
$_GET
[
'sensor_port'
];
$constant
=
constant
(
"ELPHEL_
$pname
"
);
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
echo
elphel_get_P_value
(
$constant
);
echo
elphel_get_P_value
(
$
sensor_port
,
$
constant
);
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
}
else
if
(
$cmd
==
"set_skip"
)
{
$skipping_mask
=
$_GET
[
'skip_mask'
];
exec
(
"fpcf -w 4d
$skipping_mask
"
);
//!!!sub!!!
//exec("fpcf -w 4d $skipping_mask");
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
...
...
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