MCPcopy
hub / github.com/cpaczek/skylight / calibCapture

Method calibCapture

tracker/src/loop.ts:285–297  ·  view source on GitHub ↗
(ref: CalibrationRef)

Source from the content-addressed store, hash-verified

283 }
284
285 calibCapture(ref: CalibrationRef): void {
286 const pose = this.driver().getPose();
287 if (!pose) return;
288 const cfg = this.cfg();
289 const cap = this.calibration.capture(
290 ref,
291 pose,
292 cfg.site,
293 (hex) => this.upstream.find(hex),
294 Date.now(),
295 );
296 this.recorder.write("calibCapture", { ref, pose, cap });
297 }
298
299 calibSolve(solveGains: boolean, solveLevel: boolean): void {
300 const model = this.calibration.solve(this.cfg().mount, solveGains, solveLevel);

Callers 1

onMessageMethod · 0.80

Calls 5

cfgMethod · 0.95
captureMethod · 0.80
writeMethod · 0.80
getPoseMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected