Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83832139a8 | ||
|
|
50700e73df | ||
|
|
7e047daf00 | ||
|
|
842d4980d9 | ||
|
|
04a0c3e46b | ||
|
|
d4e1da6219 | ||
|
|
d1c9be56ec | ||
|
|
2e30fa388a | ||
|
|
4b2203e008 |
2
src-tauri/.gitignore
vendored
2
src-tauri/.gitignore
vendored
@@ -1,7 +1,9 @@
|
|||||||
# Generated by Cargo
|
# Generated by Cargo
|
||||||
# will have compiled files and executables
|
# will have compiled files and executables
|
||||||
/target/
|
/target/
|
||||||
|
/target-*/
|
||||||
|
|
||||||
# Generated by Tauri
|
# Generated by Tauri
|
||||||
# will have schema files for capabilities auto-completion
|
# will have schema files for capabilities auto-completion
|
||||||
/gen/schemas
|
/gen/schemas
|
||||||
|
*log*
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ impl CsvExporter<TactileARepFrame> for TactileACsvExporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
header.push("dts".to_string());
|
header.push("dts".to_string());
|
||||||
|
header.push("summary".to_string());
|
||||||
header
|
header
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,8 +272,10 @@ impl CsvExporter<TactileARepFrame> for TactileACsvExporter {
|
|||||||
item: &RecordedFrame<TactileARepFrame>,
|
item: &RecordedFrame<TactileARepFrame>,
|
||||||
) -> anyhow::Result<Vec<String>> {
|
) -> anyhow::Result<Vec<String>> {
|
||||||
let packet = TactileADataPacket::try_from(&item.frame)?;
|
let packet = TactileADataPacket::try_from(&item.frame)?;
|
||||||
|
let summary: i32 = packet.data.iter().sum();
|
||||||
let mut row: Vec<String> = packet.data.iter().map(|x| x.to_string()).collect();
|
let mut row: Vec<String> = packet.data.iter().map(|x| x.to_string()).collect();
|
||||||
row.push(packet.dts_ms.to_string());
|
row.push(packet.dts_ms.to_string());
|
||||||
|
row.push(summary.to_string());
|
||||||
Ok(row)
|
Ok(row)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user