public bool CalcPosition(SettleSoundFile settleSoundFile, SonarConfig sc, RawPositionInfo raw, float longitude, float latitude)
 {
     if (settleSoundFile != null && sc != null && raw!=null)
     {
         try
         {
             scConfig = sc;
             this.raw = raw;
             USBL_GuiWei Position_Guiwei = new USBL_GuiWei(raw.XDistance, raw.YDistance, raw.ZDistance, raw.Heave, raw.Heading, raw.Pitch, raw.Roll, longitude, latitude, sc.SonarGPSx, sc.SonarGPSy, sc.SonarGPSz, raw.TravelTime, sc.SonarDepth, settleSoundFile.SVPd, settleSoundFile.SVPc);
             //USBL_GuiWei Position_Guiwei = new USBL_GuiWei((float)0.4785, (float)-0.5465, (float)-6.7128, raw.Heave, (float)48.7943, (float)0.1944, 0, longitude, latitude, sc.SonarGPSx, sc.SonarGPSy, sc.SonarGPSz, (float)0.0045, sc.SonarDepth, settleSoundFile.SVPd, settleSoundFile.SVPc);
             //USBL_GuiWei Position_Guiwei = new USBL_GuiWei((float)0.6391, (float)-0.0549, (float)-6.9063, raw.Heave, (float)48.73, (float)0.19, 0, longitude, latitude, sc.SonarGPSx, sc.SonarGPSy, sc.SonarGPSz, (float)0.0046, sc.SonarDepth, settleSoundFile.SVPd, settleSoundFile.SVPc);
             AjustLat = (float)Position_Guiwei.LatTarget;
             AjustLong = (float)Position_Guiwei.LonTarget;
             Noise = raw.Noise;
             Status = raw.Status;
             XAjust = (float)Position_Guiwei.x_local;
             YAjust = (float)Position_Guiwei.y_local;
             ZAjust = (float)Position_Guiwei.z_local;
         }
         catch (Exception)
         {
             return false;
         }
         return true;
     }
     return false;
 }
Esempio n. 2
0
 public bool CalcPosition(SettleSoundFile settleSoundFile, SonarConfig sc, RawPositionInfo raw, float longitude, float latitude)
 {
     if (settleSoundFile != null && sc != null && raw != null)
     {
         try
         {
             scConfig = sc;
             this.raw = raw;
             USBL_GuiWei Position_Guiwei = new USBL_GuiWei(raw.XDistance, raw.YDistance, raw.ZDistance, raw.Heave, raw.Heading, raw.Pitch, raw.Roll, longitude, latitude, sc.SonarGPSx, sc.SonarGPSy, sc.SonarGPSz, raw.TravelTime, sc.SonarDepth, settleSoundFile.SVPd, settleSoundFile.SVPc);
             //USBL_GuiWei Position_Guiwei = new USBL_GuiWei((float)0.4785, (float)-0.5465, (float)-6.7128, raw.Heave, (float)48.7943, (float)0.1944, 0, longitude, latitude, sc.SonarGPSx, sc.SonarGPSy, sc.SonarGPSz, (float)0.0045, sc.SonarDepth, settleSoundFile.SVPd, settleSoundFile.SVPc);
             //USBL_GuiWei Position_Guiwei = new USBL_GuiWei((float)0.6391, (float)-0.0549, (float)-6.9063, raw.Heave, (float)48.73, (float)0.19, 0, longitude, latitude, sc.SonarGPSx, sc.SonarGPSy, sc.SonarGPSz, (float)0.0046, sc.SonarDepth, settleSoundFile.SVPd, settleSoundFile.SVPc);
             AjustLat  = (float)Position_Guiwei.LatTarget;
             AjustLong = (float)Position_Guiwei.LonTarget;
             Noise     = raw.Noise;
             Status    = raw.Status;
             XAjust    = (float)Position_Guiwei.x_local;
             YAjust    = (float)Position_Guiwei.y_local;
             ZAjust    = (float)Position_Guiwei.z_local;
         }
         catch (Exception)
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }
 public AjustPositionInfo()
 {
     scConfig = new SonarConfig();
     raw = new RawPositionInfo();
 }
Esempio n. 4
0
 public AjustPositionInfo()
 {
     scConfig = new SonarConfig();
     raw      = new RawPositionInfo();
 }