Raw mechanical move (units-per-degree measurement).
(panDeg: number, tiltDeg: number, zoomUnits?: number)
| 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(); |
no test coverage detected