(ref: CalibrationRef)
| 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); |