fix: 修复out-height的 bug

This commit is contained in:
yarnom 2025-11-14 11:54:51 +08:00
parent 0e95c72198
commit 9e53d85594

View File

@ -122,7 +122,7 @@ public class RtkrcvManager {
private void ensureDefaults(RtkProfile p, String deviceId){ private void ensureDefaults(RtkProfile p, String deviceId){
if(p.getInpstr1_type()==null || p.getInpstr1_type().isEmpty()) p.setInpstr1_type("ntripcli"); if(p.getInpstr1_type()==null || p.getInpstr1_type().isEmpty()) p.setInpstr1_type("ntripcli");
if(p.getPos1_posmode()==null || p.getPos1_posmode().isEmpty()) p.setPos1_posmode("static"); if(p.getPos1_posmode()==null || p.getPos1_posmode().isEmpty()) p.setPos1_posmode("static");
if(p.getOut_height()==null || p.getOut_height().isEmpty()) p.setOut_height("geodetic"); // out_height 以数据库或后续GNGGA判定为准
if((p.getInpstr1_path()==null || p.getInpstr1_path().isEmpty()) && "ntripcli".equalsIgnoreCase(p.getInpstr1_type())){ if((p.getInpstr1_path()==null || p.getInpstr1_path().isEmpty()) && "ntripcli".equalsIgnoreCase(p.getInpstr1_type())){
p.setInpstr1_path("beidou:29832611@8.134.185.53:8001/"+deviceId); p.setInpstr1_path("beidou:29832611@8.134.185.53:8001/"+deviceId);
} }