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
9bf96d60
Commit
9bf96d60
authored
Sep 01, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
problems with rounding
parent
15f53fb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ui_align.js
js/ui_align.js
+8
-1
No files found.
js/ui_align.js
View file @
9bf96d60
...
...
@@ -248,6 +248,10 @@ function apply_alignment_dialog_hll(xyh0,xyh1,c,e,de){
*/
function
apply_alignment_hll
(
xyh
){
for
(
var
i
=
0
;
i
<
xyh
.
length
;
i
++
){
xyh
[
i
]
=
parseFloat
(
xyh
[
i
]);
}
var
Camera
=
Map
.
marker
;
Data
.
camera
.
heading
=
xyh
[
2
];
...
...
@@ -464,7 +468,6 @@ function x3dom_align_art(){
}
var
result
=
numbers
.
calculus
.
GaussNewton
([
0
,
0
,
0
],
Data
.
markers
.
length
,
art_r_i
,[
art_dr_dx_i
,
art_dr_dy_i
,
art_dr_da_i
],
epsilon
,
art_w_i
);
console
.
log
(
result
);
//convert to degs
result
.
v
[
0
]
=
result
.
v
[
0
]
*
180
/
Math
.
PI
;
...
...
@@ -541,6 +544,10 @@ function apply_alignment_dialog_art(a0,a1,c,e,full){
function
apply_alignment_art
(
tra
){
for
(
var
i
=
0
;
i
<
tra
.
length
;
i
++
){
tra
[
i
]
=
parseFloat
(
tra
[
i
]);
}
var
Camera
=
Map
.
marker
;
Data
.
camera
.
tilt
=
tra
[
0
]
+
90
;
...
...
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