fix: 修复out-height的 bug

This commit is contained in:
yarnom 2025-11-14 11:42:59 +08:00
parent 869c2b7237
commit 0e95c72198

View File

@ -54,7 +54,9 @@ 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";
} }