Esempio n. 1
0
 public void SaveAD(ADInfo info)
 {
     if (Path == null)
     {
         return;
     }
     if (ADFile == null)
     {
         ADFile = new PingFile(ProjectName, "ad");
         ADFile.SetPath(new DirectoryInfo(Path));
         ADFile.Create(info.PingNum);
         ADFile.Write(info.SavePackage());
         return;
     }
     if (ADFile.PingID != info.PingNum) //新的ping号
     {
         ADFile.Close();
         ADFile.Create(info.PingNum);
     }
     ADFile.Write(info.SavePackage());
 }
Esempio n. 2
0
 public void Close()
 {
     Path = null;
     if (GpsFile != null)
     {
         GpsFile.Close();
     }
     if (PoseFile != null)
     {
         PoseFile.Close();
     }
     if (ADFile != null)
     {
         ADFile.Close();
     }
     if (PosFile != null)
     {
         PosFile.Close();
     }
     if (SonarSetting != null)
     {
         SonarSetting.Close();
     }
 }