Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
35a34987
Commit
35a34987
authored
Sep 26, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
related to optimization
parent
f552637b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
+29
-8
ui_align.js
js/ui_align.js
+29
-8
No files found.
js/ui_align.js
View file @
35a34987
...
@@ -402,19 +402,40 @@ function x3dom_align_hll3(){
...
@@ -402,19 +402,40 @@ function x3dom_align_hll3(){
//var result = numbers.calculus.GaussNewton(xyh,Data.markers.length,hll3_r_i,[hll3_dr_dx_i,hll3_dr_dy_i],epsilon,hll3_w_i);
//var result = numbers.calculus.GaussNewton(xyh,Data.markers.length,hll3_r_i,[hll3_dr_dx_i,hll3_dr_dy_i],epsilon,hll3_w_i);
var
result
=
numbers
.
calculus
.
GaussNewton_forHeading
(
xyh
,
Data
.
markers
.
length
,
hll3_r_i
,[
hll3_dr_dx_i
,
hll3_dr_dy_i
],
epsilon
,
hll3_w_i
);
//
var result = numbers.calculus.GaussNewton_forHeading(xyh,Data.markers.length,hll3_r_i,[hll3_dr_dx_i,hll3_dr_dy_i],epsilon,hll3_w_i);
/*
var
rs_i
=
[
hll4a_r_i
,
hll4b_r_i
];
var rs_i = [hll3_r_i,hll3_r_i];
var
drs_i
=
[
var
drs_i
=
[
[hll
3_dr_dx_i, hll3
_dr_dy_i],
[
hll
4a_dr_dx_i
,
hll4a
_dr_dy_i
],
[hll
3_dr_dx_i, hll3
_dr_dy_i]
[
hll
4b_dr_dx_i
,
hll4b
_dr_dy_i
]
];
];
var ws_i = [hll3_w_i,hll3_w_i];
var
ws_i
=
[
hll4a_w_i
,
hll4b_w_i
];
*/
var
result
=
numbers
.
calculus
.
GaussNewton_nD
(
xyh
,
Data
.
markers
.
length
,
rs_i
,
drs_i
,
epsilon
,
ws_i
);
// print result as csv
var
history
=
result
.
history
;
var
history_csved
=
""
;
var
markers_csved
=
""
;
//var result = numbers.calculus.GaussNewton_nD(xyh,Data.markers.length,rs_i,drs_i,epsilon,ws_i);
// print markers data
for
(
var
i
=
0
;
i
<
Data
.
markers
.
length
;
i
++
){
var
mark
=
Data
.
markers
[
i
];
markers_csved
+=
mark
.
align
.
latitude
+
","
+
mark
.
align
.
longitude
+
"
\n
"
;
}
console
.
log
(
markers_csved
);
//print initial approximation
var
initial_csved
=
Data
.
camera
.
kml
.
latitude
+
","
+
Data
.
camera
.
kml
.
longitude
;
console
.
log
(
initial_csved
);
// print history
for
(
var
i
=
0
;
i
<
history
.
length
;
i
++
){
history_csved
+=
history
[
i
][
0
]
+
","
+
history
[
i
][
1
]
+
"
\n
"
;
}
console
.
log
(
history_csved
);
xyh
=
[
result
.
v
[
0
],
result
.
v
[
1
],
h0
];
xyh
=
[
result
.
v
[
0
],
result
.
v
[
1
],
h0
];
...
...
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