Skip to content

Commit fc2ca50

Browse files
committed
tested on paths, needs tests 2
1 parent 320e05c commit fc2ca50

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src-core/src/generation/remote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn remote_generate_child(args: RemoteArgs) {
164164
}
165165
Err(e) => {
166166
tracing::warn!("Failed to generate trajectory {:}", e);
167-
let ser_string = serde_json::to_string(&RemoteProgressUpdate::Error(e))
167+
let ser_string: String = serde_json::to_string(&RemoteProgressUpdate::Error(e))
168168
.expect("Failed to serialize progress update");
169169
ipc.send(ser_string)
170170
.expect("Failed to send progress update");

src/document/2025/v2025_0_0.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ConstraintData } from "../ConstraintDefinitions";
22
import { Dimensions } from "../ExpressionStore";
33

4-
export const SAVE_FILE_VERSION = "v2025.0.0";
4+
export const SAVE_FILE_VERSION = 1;
55
export type Expr = { exp: string; val: number };
66

77
export function isExpr(arg: any): arg is Expr {
@@ -130,6 +130,7 @@ export interface Output {
130130
waypoints: number[];
131131
samples: SwerveSample[] | DifferentialSample[];
132132
splits: number[];
133+
trackwidth: number;
133134
}
134135

135136
export interface Trajectory {

src/document/path/ChoreoTrajectoryStore.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export const ChoreoTrajectoryStore = types
6767
return {
6868
waypoints: self.waypoints,
6969
samples: self.samples,
70-
splits: self.splits
70+
splits: self.splits,
71+
trackwidth: 1.0 //TODO: trackwidth
7172
};
7273
}
7374
}))

0 commit comments

Comments
 (0)