@@ -115,7 +115,7 @@ async def main():
115115 async for event in client.subscribe():
116116 if isinstance (event, Track):
117117 print (
118- f " 📍 Track # { event.id} - { event.name} at ( { event.lat} , { event.long} ) → { event.speed} knots "
118+ f " 📍 Track # { event.id} - { event.name} at ( { event.lat} , { event.long} ) → { event.speed} m/s "
119119 )
120120
121121
@@ -157,11 +157,9 @@ The client supports two configuration methods:
157157The ` .env ` file allows you to define environment variables:
158158
159159``` dotenv
160- ANTARES_HOST=localhost
161- ANTARES_HTTP_PORT=9000
162- ANTARES_TCP_PORT=9001
160+ ANTARES_CONTROLLER_BIND_ADDR=0.0.0.0:17394
161+ ANTARES_RADAR_BIND_ADDR=0.0.0.0:17396
163162ANTARES_TIMEOUT=5.0
164- ANTARES_AUTH_TOKEN=
165163```
166164
167165➡️ See ` template.env ` for a complete example.
@@ -171,29 +169,42 @@ ANTARES_AUTH_TOKEN=
171169To configure the client and ships via a TOML file:
172170
173171``` toml
174- [antares ]
175- host = " localhost"
176- http_port = 9000
177- tcp_port = 9001
178- timeout = 5.0
179- auth_token = " "
180-
181- [[antares .ships .stationary ]]
182- initial_position = [50.0 , 50.0 ]
172+ [antares .radar ]
173+ bind_addr = " 0.0.0.0:17396"
183174
184- [[antares .ships .random ]]
185- initial_position = [-20.0 , 20.0 ]
186- max_speed = 10.0
175+ [antares .radar .detector ]
176+ range = 1000.0
177+ speed = 0.0
178+ angle = 0.0
179+ start_coordinates = [4.0 , -72.0 ]
187180
188- [[antares .ships .circle ]]
189- initial_position = [30.0 , -30.0 ]
190- radius = 20.0
191- speed = 4.0
181+ [antares .radar .broadcast ]
182+ type = " tcp"
192183
193- [[antares .ships .line ]]
184+ [antares .simulation ]
185+ emission_interval = 20
186+ controller_bind_addr = " 0.0.0.0:17394"
187+
188+ [[antares .simulation .initial_ships ]]
189+ type = " line"
194190initial_position = [0.0 , 0.0 ]
195191angle = 0.785
196192speed = 5.0
193+
194+ [[antares .simulation .initial_ships ]]
195+ type = " circle"
196+ initial_position = [30.0 , -30.0 ]
197+ radius = 20.0
198+ speed = 4.0
199+
200+ [[antares .simulation .initial_ships ]]
201+ type = " random"
202+ initial_position = [-20.0 , 20.0 ]
203+ max_speed = 10.0
204+
205+ [[antares .simulation .initial_ships ]]
206+ type = " stationary"
207+ initial_position = [50.0 , 50.0 ]
197208```
198209
199210➡️ See ` config.example.toml ` for a full working example.
0 commit comments