fix: 修复out-height的 bug
This commit is contained in:
parent
a409074563
commit
acb0515252
@ -54,9 +54,7 @@ public class RtkrcvManager {
|
|||||||
Double geo = dev.getGeoidSeparation()==null?0.0:dev.getGeoidSeparation();
|
Double geo = dev.getGeoidSeparation()==null?0.0:dev.getGeoidSeparation();
|
||||||
try{ beidouClient.onRtkGngga(deviceId, lat, lon, alt, geo); }catch(Exception ignore){}
|
try{ beidouClient.onRtkGngga(deviceId, lat, lon, alt, geo); }catch(Exception ignore){}
|
||||||
if(!(lat==0.0 && lon==0.0 && alt==0.0)){
|
if(!(lat==0.0 && lon==0.0 && alt==0.0)){
|
||||||
if(profile.getOut_height()==null || profile.getOut_height().isEmpty()){
|
profile.setOut_height(geo==0.0?"ellipsoidal":"geodetic");
|
||||||
profile.setOut_height(geo==0.0?"ellipsoidal":"geodetic");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
retHint = "all_zero";
|
retHint = "all_zero";
|
||||||
}
|
}
|
||||||
@ -151,7 +149,9 @@ public class RtkrcvManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template = replaceLine(template, "pos1-posmode", profile.getPos1_posmode());
|
template = replaceLine(template, "pos1-posmode", profile.getPos1_posmode());
|
||||||
template = replaceLine(template, "out-height", profile.getOut_height());
|
if(profile.getOut_height()!=null && !profile.getOut_height().isEmpty()){
|
||||||
|
template = replaceLine(template, "out-height", profile.getOut_height());
|
||||||
|
}
|
||||||
template = replaceLine(template, "inpstr1-type", profile.getInpstr1_type());
|
template = replaceLine(template, "inpstr1-type", profile.getInpstr1_type());
|
||||||
if(profile.getInpstr1_path()!=null) template = replaceLine(template, "inpstr1-path", profile.getInpstr1_path());
|
if(profile.getInpstr1_path()!=null) template = replaceLine(template, "inpstr1-path", profile.getInpstr1_path());
|
||||||
if(group.getInpstr2_path()!=null) template = replaceLine(template, "inpstr2-path", group.getInpstr2_path());
|
if(group.getInpstr2_path()!=null) template = replaceLine(template, "inpstr2-path", group.getInpstr2_path());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user