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

Method gotoPanTilt

tracker/src/loop.ts:273–283  ·  view source on GitHub ↗

Raw mechanical move (units-per-degree measurement).

(panDeg: number, tiltDeg: number, zoomUnits?: number)

Source from the content-addressed store, hash-verified

271
272 /** Raw mechanical move (units-per-degree measurement). */
273 gotoPanTilt(panDeg: number, tiltDeg: number, zoomUnits?: number): void {
274 if (this.mode === "auto") this.setMode("manual");
275 const pose = {
276 panDeg,
277 tiltDeg,
278 zoomUnits: zoomUnits ?? this.driver().getPose()?.zoomUnits ?? 0,
279 };
280 this.lastCommanded = pose;
281 this.driver().gotoAbsolute(pose);
282 this.recorder.write("gotoPanTilt", { pose });
283 }
284
285 calibCapture(ref: CalibrationRef): void {
286 const pose = this.driver().getPose();

Callers 1

onMessageMethod · 0.80

Calls 4

setModeMethod · 0.95
writeMethod · 0.80
getPoseMethod · 0.65
gotoAbsoluteMethod · 0.65

Tested by

no test coverage detected