public void SavePose(PosetureInfo poseinfo) { if (Path == null) { return; } if (PoseFile == null) { PoseFile = new ADFile("Pose", "dat"); PoseFile.SetFileSizeLimit(PoseFileSize); PoseFile.SetPath(new DirectoryInfo(Path)); PoseFile.Create(); } if (PoseFile.Write(poseinfo.SavePackage()) == 0) { throw new Exception("创建Pose文件失败!"); } }
public void SaveGPS(GPSInfo gpsInfo) { if (Path == null) { return; } if (GpsFile == null) { GpsFile = new ADFile("GPS", "dat"); GpsFile.SetFileSizeLimit(GPSFileSize); GpsFile.SetPath(new DirectoryInfo(Path)); GpsFile.Create(); } if (GpsFile.Write(gpsInfo.SavePackage()) == 0) { throw new Exception("创建GPS文件失败!"); } }
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()); }
public void SavePose(PosetureInfo poseinfo) { if (Path == null) return; if (PoseFile == null) { PoseFile = new ADFile("Pose", "dat"); PoseFile.SetFileSizeLimit(PoseFileSize); PoseFile.SetPath(new DirectoryInfo(Path)); PoseFile.Create(); } if (PoseFile.Write(poseinfo.SavePackage()) == 0) throw new Exception("创建Pose文件失败!"); }
public void SaveGPS(GPSInfo gpsInfo) { if (Path==null) return; if (GpsFile == null) { GpsFile = new ADFile("GPS","dat"); GpsFile.SetFileSizeLimit(GPSFileSize); GpsFile.SetPath(new DirectoryInfo(Path)); GpsFile.Create(); } if (GpsFile.Write(gpsInfo.SavePackage()) == 0) throw new Exception("创建GPS文件失败!"); }