How digao791/radar-system works
Radar System simulates moving targets, detects those within configured range, and serves radar state to a React dashboard. The main user flow is browser dashboard polling and issuing pause/resume commands through the JSON API; the dashboard renders detections, configuration, status, and target details. Backend internals are not excerpted, so their links follow the README’s documented architecture and API overview rather than inspected call sites. The separate map component is present in the tree and excerpted, but its connection to the dashboard is not shown.
Main entry points: App.tsx Dashboard state · radar-service.adb Radar service · radar-engine.adb Simulation engine · radar-simulation.adb Target simulation
Components 21
Dashboard
- Dashboard state
frontend/src/App.tsx - Radar API client
frontend/src/api/radarApi.ts - Radar display
frontend/src/components/RadarDisplay.tsx - Map overlay
frontend/src/components/RadarMap.tsx - Radar data types
frontend/src/types/radar.ts
HTTP API
- HTTP server
src/impl/radar_http.adb - API routes
src/impl/radar-routes.adb - API handlers
src/impl/radar-handlers.adb - Configuration handler
src/impl/radar-handlers-config.adb - Detection handler
src/impl/radar-handlers-detection.adb - Targets handler
src/impl/radar-handlers-targets.adb
Simulation
- Radar service
src/impl/radar-service.adb - Simulation engine
src/impl/radar-engine.adb - Shared state
src/impl/radar-shared_state.adb - Target simulation
src/impl/radar-simulation.adb - Target generation
src/impl/radar-target_generator.adb
Radar Logic
- Target movement
src/impl/radar-targets.adb - Range detection
src/impl/radar-detection.adb - Radar configuration
src/impl/radar-configuration.adb - Engine controls
src/impl/radar-control.adb
Other components
- Web browser
Connections 20
- Web browser → Dashboard state: uses dashboard
README.md - Dashboard state → Radar API client: polls and controls
frontend/src/App.tsx - Dashboard state → Radar display: renders detections
frontend/src/App.tsx - Dashboard state → Radar data types: uses data types
frontend/src/App.tsx - Radar API client → HTTP server: sends JSON requests
README.md - HTTP server → API routes: dispatches requests
README.md - API routes → API handlers: routes requests
README.md - API handlers → Radar service: reads radar state
README.md - Radar service → Simulation engine: uses simulation engine
README.md - Radar service → Radar configuration: provides configuration
README.md - Radar service → Range detection: provides detections
README.md - Simulation engine → Shared state: maintains state
README.md - Simulation engine → Target simulation: runs simulation
README.md - Target simulation → Target movement: moves targets
README.md - Target simulation → Target generation: creates targets
- Range detection → Target movement: checks target range
README.md - Engine controls → Simulation engine: pauses or resumes
README.md - Configuration handler → Radar configuration: reads configuration
- Detection handler → Range detection: returns detections
- Targets handler → Target movement: returns targets