()
| 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; |
no test coverage detected