MCPcopy Create free account
hub / github.com/ecto/muni / clearPathData

Function clearPathData

depot/console/src/lib/pathStore.ts:109–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 * Clear all path data. Called on disconnect.
108 */
109export function clearPathData(): void {
110 globalStore.state = 0;
111 globalStore.waypoints = [];
112 globalStore.currentWaypoint = 0;
113 globalStore.distanceToGoal = 0;
114 globalStore.version++;
115 globalStore.mppiTrajectory = null;
116 globalStore.mppiVersion++;
117 globalStore.timestamp = performance.now();
118}

Callers 1

useRoverConnectionRtcFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected