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
880920c8
Commit
880920c8
authored
May 22, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kept applying parameters in parallel rqs while using program ahead values
parent
8e09101c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
index.php
src/index/index.php
+19
-19
No files found.
src/index/index.php
View file @
880920c8
...
@@ -379,11 +379,11 @@
...
@@ -379,11 +379,11 @@
$
(
"#quick_fullres"
).
click
(
async
function
(){
$
(
"#quick_fullres"
).
click
(
async
function
(){
await
set_params
({
set_params
({
"TRIG_PERIOD"
:
10000000
"TRIG_PERIOD"
:
10000000
},
-
2
);
},
-
2
);
await
set_params
({
set_params
({
"AUTOEXP_EXP_MAX"
:
100000
,
"AUTOEXP_EXP_MAX"
:
100000
,
"WOI_WIDTH"
:
2592
,
"WOI_WIDTH"
:
2592
,
"WOI_HEIGHT"
:
1936
,
"WOI_HEIGHT"
:
1936
,
...
@@ -391,13 +391,13 @@
...
@@ -391,13 +391,13 @@
"WOI_LEFT"
:
0
,
"WOI_LEFT"
:
0
,
"SENSOR_RUN"
:
0
,
"SENSOR_RUN"
:
0
,
"COMPRESSOR_RUN"
:
3
"COMPRESSOR_RUN"
:
3
},
3
,()
=>
{
console
.
log
(
"ok"
)}
);
},
3
);
await
set_params
({
set_params
({
"TRIG_PERIOD"
:
10000000
,
"TRIG_PERIOD"
:
10000000
,
"SENSOR_RUN"
:
2
,
"SENSOR_RUN"
:
2
,
"COMPRESSOR_RUN"
:
2
"COMPRESSOR_RUN"
:
2
},
7
,()
=>
{
console
.
log
(
"ok"
)}
);
},
7
);
$
(
this
).
parent
().
find
(
"#ll_status"
).
css
({
opacity
:
1
}).
animate
({
opacity
:
0
},
2000
);
$
(
this
).
parent
().
find
(
"#ll_status"
).
css
({
opacity
:
1
}).
animate
({
opacity
:
0
},
2000
);
update_canvas_mjpeg
();
update_canvas_mjpeg
();
...
@@ -405,11 +405,11 @@
...
@@ -405,11 +405,11 @@
$
(
"#quick_1080p"
).
click
(
async
function
(){
$
(
"#quick_1080p"
).
click
(
async
function
(){
await
set_params
({
set_params
({
"TRIG_PERIOD"
:
10000000
"TRIG_PERIOD"
:
10000000
},
-
2
);
},
-
2
);
await
set_params
({
set_params
({
"AUTOEXP_EXP_MAX"
:
30000
,
"AUTOEXP_EXP_MAX"
:
30000
,
"WOI_WIDTH"
:
1920
,
"WOI_WIDTH"
:
1920
,
"WOI_HEIGHT"
:
1088
,
"WOI_HEIGHT"
:
1088
,
...
@@ -417,13 +417,13 @@
...
@@ -417,13 +417,13 @@
"WOI_LEFT"
:
336
,
"WOI_LEFT"
:
336
,
"SENSOR_RUN"
:
0
,
"SENSOR_RUN"
:
0
,
"COMPRESSOR_RUN"
:
3
"COMPRESSOR_RUN"
:
3
},
3
,()
=>
{
console
.
log
(
"ok"
)}
);
},
3
);
await
set_params
({
set_params
({
"TRIG_PERIOD"
:
3333333
,
"TRIG_PERIOD"
:
3333333
,
"SENSOR_RUN"
:
2
,
"SENSOR_RUN"
:
2
,
"COMPRESSOR_RUN"
:
2
"COMPRESSOR_RUN"
:
2
},
7
,()
=>
{
console
.
log
(
"ok"
)}
);
},
7
);
$
(
this
).
parent
().
find
(
"#ll_status"
).
css
({
opacity
:
1
}).
animate
({
opacity
:
0
},
2000
);
$
(
this
).
parent
().
find
(
"#ll_status"
).
css
({
opacity
:
1
}).
animate
({
opacity
:
0
},
2000
);
update_canvas_mjpeg
();
update_canvas_mjpeg
();
...
@@ -431,11 +431,11 @@
...
@@ -431,11 +431,11 @@
$
(
"#quick_720p"
).
click
(
async
function
(){
$
(
"#quick_720p"
).
click
(
async
function
(){
await
set_params
({
set_params
({
"TRIG_PERIOD"
:
10000000
"TRIG_PERIOD"
:
10000000
},
-
2
);
},
-
2
);
await
set_params
({
set_params
({
"AUTOEXP_EXP_MAX"
:
16000
,
"AUTOEXP_EXP_MAX"
:
16000
,
"WOI_WIDTH"
:
1280
,
"WOI_WIDTH"
:
1280
,
"WOI_HEIGHT"
:
720
,
"WOI_HEIGHT"
:
720
,
...
@@ -443,13 +443,13 @@
...
@@ -443,13 +443,13 @@
"WOI_LEFT"
:
656
,
"WOI_LEFT"
:
656
,
"SENSOR_RUN"
:
0
,
"SENSOR_RUN"
:
0
,
"COMPRESSOR_RUN"
:
3
"COMPRESSOR_RUN"
:
3
},
3
,()
=>
{
console
.
log
(
"ok"
)}
);
},
3
);
await
set_params
({
set_params
({
"TRIG_PERIOD"
:
1666667
,
"TRIG_PERIOD"
:
1666667
,
"SENSOR_RUN"
:
2
,
"SENSOR_RUN"
:
2
,
"COMPRESSOR_RUN"
:
2
"COMPRESSOR_RUN"
:
2
},
7
,()
=>
{
console
.
log
(
"ok"
)}
);
},
7
);
$
(
this
).
parent
().
find
(
"#ll_status"
).
css
({
opacity
:
1
}).
animate
({
opacity
:
0
},
2000
);
$
(
this
).
parent
().
find
(
"#ll_status"
).
css
({
opacity
:
1
}).
animate
({
opacity
:
0
},
2000
);
update_canvas_mjpeg
();
update_canvas_mjpeg
();
...
@@ -472,18 +472,18 @@
...
@@ -472,18 +472,18 @@
}
}
async
function
set_params
(
pars
,
ahead
=
3
,
callback
){
async
function
set_params
(
pars
,
ahead
=
3
){
let
req
=
[];
let
req
=
[];
for
(
p
in
pars
){
for
(
p
in
pars
){
req
.
push
(
p
+
"="
+
pars
[
p
]
+
"*"
+
ahead
+
"&*"
+
p
+
"=0xf"
);
req
.
push
(
p
+
"="
+
pars
[
p
]
+
"*"
+
ahead
+
"&*"
+
p
+
"=0xf"
);
}
}
$
.
ajax
({
let
res
=
await
$
.
ajax
({
url
:
"parsedit.php?immediate&sensor_port=
<?php
echo
$master_port
;
?>
&"
+
req
.
join
(
"&"
),
url
:
"parsedit.php?immediate&sensor_port=
<?php
echo
$master_port
;
?>
&"
+
req
.
join
(
"&"
)
success
:
callback
});
});
return
res
;
}
}
const
sleep
=
ms
=>
{
const
sleep
=
ms
=>
{
...
...
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