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

Method rescheduleTick

tracker/src/loop.ts:179–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 private rescheduleTick(): void {
180 if (this.timer) clearInterval(this.timer);
181 const hz = this.cfg().predict.commandHz || 15;
182 this.timer = setInterval(() => this.tick(), 1000 / hz);
183 if (this.visionTimer) clearInterval(this.visionTimer);
184 const ms = this.cfg().vision.intervalMs || 250;
185 this.visionTimer = setInterval(() => void this.visionTick(), ms);
186 }
187
188 private cfg(): TrackerConfig {
189 return this.upstream.getConfig().tracker;

Callers 2

startMethod · 0.95
onConfigMethod · 0.95

Calls 3

cfgMethod · 0.95
tickMethod · 0.95
visionTickMethod · 0.95

Tested by

no test coverage detected