feat(sim): start and stop the decoder simulator from Settings (1.65.0)
This commit is contained in:
1 parent
0ce7280cbf
commit
e4874fd558
14 files changed
+309
-110
No files matched your search
@@ -431,7 +431,7 @@ AMMC sends PASSING messages like this ([AMMC docs](https://www.ammconverter.eu/d
|
||||
|
||||
### Testing without a decoder
|
||||
|
||||
`npm run sim` starts a decoder simulator on `ws://127.0.0.1:9000` (the app's default decoder address) that replaces AMMC and the decoder, so it also runs on a laptop without either. It sends passings with realistic lap times (about 18 s, a crash now and then) for the transponders in the active heat (sponsor heats: the cars), and follows when you switch heat. Start the heat on Race Day and the laps come in. Options: `npm run sim -- --lap 15 --spread 2 --tp 1001,1002 --port 9000`. If port 9000 is busy (AMMC running), stop AMMC or use `--port 9100` and set the decoder address to `ws://127.0.0.1:9100`.
|
||||
Settings → "Decoder simulator" starts it from the UI (port 9099, the app connects by itself). From a terminal, `npm run sim` starts a decoder simulator on `ws://127.0.0.1:9000` (the app's default decoder address) that replaces AMMC and the decoder, so it also runs on a laptop without either. It sends passings with realistic lap times (about 18 s, a crash now and then) for the transponders in the active heat (sponsor heats: the cars), and follows when you switch heat. Start the heat on Race Day and the laps come in. Options: `npm run sim -- --lap 15 --spread 2 --tp 1001,1002 --port 9000`. If port 9000 is busy (AMMC running), stop AMMC or use `--port 9100` and set the decoder address to `ws://127.0.0.1:9100`.
|
||||
|
||||
## Development and tests
|
||||
|
||||
|
||||
Reference in new issue
Block a user