Commit 9bf96d60 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

problems with rounding

parent 15f53fb2
...@@ -248,6 +248,10 @@ function apply_alignment_dialog_hll(xyh0,xyh1,c,e,de){ ...@@ -248,6 +248,10 @@ function apply_alignment_dialog_hll(xyh0,xyh1,c,e,de){
*/ */
function apply_alignment_hll(xyh){ function apply_alignment_hll(xyh){
for(var i=0;i<xyh.length;i++){
xyh[i] = parseFloat(xyh[i]);
}
var Camera = Map.marker; var Camera = Map.marker;
Data.camera.heading = xyh[2]; Data.camera.heading = xyh[2];
...@@ -464,7 +468,6 @@ function x3dom_align_art(){ ...@@ -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); 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 //convert to degs
result.v[0] = result.v[0]*180/Math.PI; result.v[0] = result.v[0]*180/Math.PI;
...@@ -541,6 +544,10 @@ function apply_alignment_dialog_art(a0,a1,c,e,full){ ...@@ -541,6 +544,10 @@ function apply_alignment_dialog_art(a0,a1,c,e,full){
function apply_alignment_art(tra){ function apply_alignment_art(tra){
for(var i=0;i<tra.length;i++){
tra[i] = parseFloat(tra[i]);
}
var Camera = Map.marker; var Camera = Map.marker;
Data.camera.tilt = tra[0]+90; Data.camera.tilt = tra[0]+90;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment