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

Method gotoAzEl

tracker/src/loop.ts:261–270  ·  view source on GitHub ↗

Point at a world direction through the mount model (calibration verify).

(azDeg: number, elDeg: number)

Source from the content-addressed store, hash-verified

259
260 /** Point at a world direction through the mount model (calibration verify). */
261 gotoAzEl(azDeg: number, elDeg: number): void {
262 if (this.mode === "auto") this.setMode("manual");
263 const cfg = this.cfg();
264 const pt = mountFromWorld(azDeg, elDeg, cfg.mount);
265 const zoom = this.driver().getPose()?.zoomUnits ?? cfg.units.zoomWideUnits;
266 const pose = { ...pt, zoomUnits: zoom };
267 this.lastCommanded = pose;
268 this.driver().gotoAbsolute(pose);
269 this.recorder.write("gotoAzEl", { azDeg, elDeg, pose });
270 }
271
272 /** Raw mechanical move (units-per-degree measurement). */
273 gotoPanTilt(panDeg: number, tiltDeg: number, zoomUnits?: number): void {

Callers 1

onMessageMethod · 0.80

Calls 6

setModeMethod · 0.95
cfgMethod · 0.95
mountFromWorldFunction · 0.85
writeMethod · 0.80
getPoseMethod · 0.65
gotoAbsoluteMethod · 0.65

Tested by

no test coverage detected