Skip to content

Commit

Permalink
fix: let users pass responsesCoordinateSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
bompo committed Dec 5, 2024
1 parent 68826be commit ce3289e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/getLatestTrajectories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ let lastMotionIds: Set<string> = new Set()

export async function getLatestTrajectories(
apiClient: NovaCellAPIClient,
sampleTime: number = 50,
responsesCoordinateSystem?: string,
): Promise<GetTrajectoryResponse[]> {
const newTrajectories: GetTrajectoryResponse[] = []

Expand All @@ -19,7 +21,8 @@ export async function getLatestTrajectories(
for (const motionId of newMotionIds) {
const trajectory = await apiClient.motion.getMotionTrajectory(
motionId,
50,
sampleTime,
responsesCoordinateSystem,
)
newTrajectories.push(trajectory)
}
Expand Down

0 comments on commit ce3289e

Please sign in to comment.