diff --git a/src/lib/getLatestTrajectories.ts b/src/lib/getLatestTrajectories.ts index 63e1f80..c65f767 100644 --- a/src/lib/getLatestTrajectories.ts +++ b/src/lib/getLatestTrajectories.ts @@ -5,6 +5,8 @@ let lastMotionIds: Set = new Set() export async function getLatestTrajectories( apiClient: NovaCellAPIClient, + sampleTime: number = 50, + responsesCoordinateSystem?: string, ): Promise { const newTrajectories: GetTrajectoryResponse[] = [] @@ -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) }