Commit 599937a
committed
feat: smarter rotator polling - interleaved timer, adaptive rate, tolerance
- Replace dual setInterval with single setTimeout chain alternating
poll → track phases, avoiding back-to-back commands on serial links
- Adaptive poll rate derived from rotator velocity (250ms at full slew,
3s when idle), no extra config needed
- Skip redundant track commands when target hasn't moved >0.05°
- Add configurable tolerance (GPredict-style): suppress position commands
when rotator is already within threshold of target, reducing gear wear
- Fix azimuth wraparound in velocity, slew detection, and skip checks
- Map Hamlib RPRT error codes to human-readable messages
- Default WebSocket URL to ws://localhost:4534 to match docs
- Update network guide with clearer install/run steps for bridges1 parent fcad2c9 commit 599937a
3 files changed
Lines changed: 220 additions & 110 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
172 | 194 | | |
173 | 195 | | |
174 | 196 | | |
175 | 197 | | |
176 | | - | |
| 198 | + | |
| 199 | + | |
177 | 200 | | |
178 | 201 | | |
0 commit comments