生成文件返回路径
This commit is contained in:
parent
8ab9c4a64c
commit
4cf558b4c2
@ -22,7 +22,7 @@ public class InsFileConvertService {
|
|||||||
* INS 转换通用方法
|
* INS 转换通用方法
|
||||||
* INS 数据 → VINS/FVNS 文件
|
* INS 数据 → VINS/FVNS 文件
|
||||||
*/
|
*/
|
||||||
public void convertByTemplate(File insFile) throws Exception {
|
public Map<String, String> convertByTemplate(File insFile) throws Exception {
|
||||||
|
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
|
|
||||||
@ -132,6 +132,11 @@ public class InsFileConvertService {
|
|||||||
fvnsOut.getName()
|
fvnsOut.getName()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
// 最后返回 Map<String, String>:
|
||||||
|
Map<String, String> out = new HashMap<>();
|
||||||
|
out.put("vins", vinsOut.getAbsolutePath());
|
||||||
|
out.put("fvns", fvnsOut.getAbsolutePath());
|
||||||
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ================== 校验与工具方法 ==================
|
// ================== 校验与工具方法 ==================
|
||||||
@ -207,7 +212,7 @@ public class InsFileConvertService {
|
|||||||
InsFileConvertService service = new InsFileConvertService();
|
InsFileConvertService service = new InsFileConvertService();
|
||||||
|
|
||||||
// ---------- 2. 指定 INS 文件路径 ----------
|
// ---------- 2. 指定 INS 文件路径 ----------
|
||||||
File insFile = new File("D:/data/ins_frameSimu_0.txt");
|
File insFile = new File("D:/data/ins_frameSimu_1.txt");
|
||||||
// Linux 示例:
|
// Linux 示例:
|
||||||
// File insFile = new File("/data/ins/ins_frameSimu_0.txt");
|
// File insFile = new File("/data/ins/ins_frameSimu_0.txt");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user