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
1494df60
Commit
1494df60
authored
Jul 24, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed align heading crossing south
parent
8adc63c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
align_functions.js
js/align_functions.js
+11
-1
No files found.
js/align_functions.js
View file @
1494df60
...
@@ -107,6 +107,11 @@ function hll_r_i(i,v){
...
@@ -107,6 +107,11 @@ function hll_r_i(i,v){
var
f1
=
hll_f_3d_i
(
i
,
v
);
var
f1
=
hll_f_3d_i
(
i
,
v
);
var
f2
=
hll_f_map_i
(
i
,
v
);
var
f2
=
hll_f_map_i
(
i
,
v
);
//return (f1-f2+360)%360;
//return (f1-f2+360)%360;
f1
-=
v
[
2
];
f2
-=
v
[
2
];
f1
=
bring_degrees_to_n180_180
(
f1
);
f2
=
bring_degrees_to_n180_180
(
f2
);
return
(
f1
-
f2
);
return
(
f1
-
f2
);
}
}
...
@@ -214,6 +219,12 @@ function hll2_r_i(i,v){
...
@@ -214,6 +219,12 @@ function hll2_r_i(i,v){
var
f1
=
hll_f_3d_i
(
i
,[
lat
,
lng
,
v
[
0
]]);
var
f1
=
hll_f_3d_i
(
i
,[
lat
,
lng
,
v
[
0
]]);
var
f2
=
hll_f_map_i
(
i
,[
lat
,
lng
,
v
[
0
]]);
var
f2
=
hll_f_map_i
(
i
,[
lat
,
lng
,
v
[
0
]]);
f1
-=
v
[
0
];
f2
-=
v
[
0
];
f1
=
bring_degrees_to_n180_180
(
f1
);
f2
=
bring_degrees_to_n180_180
(
f2
);
//return (f1-f2+360)%360;
//return (f1-f2+360)%360;
return
(
f1
-
f2
);
return
(
f1
-
f2
);
}
}
...
@@ -261,7 +272,6 @@ function hll3_r_i(i,v){
...
@@ -261,7 +272,6 @@ function hll3_r_i(i,v){
f1
-=
heading
;
f1
-=
heading
;
f2
-=
heading
;
f2
-=
heading
;
f1
=
bring_degrees_to_n180_180
(
f1
);
f1
=
bring_degrees_to_n180_180
(
f1
);
f2
=
bring_degrees_to_n180_180
(
f2
);
f2
=
bring_degrees_to_n180_180
(
f2
);
...
...
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