How gitfeber/uavgroundcontrolstation works
This is a local UAV ground-control station with desktop, browser-serial, and Node/MAVLink runtimes. The principal workflow is operator connection to vehicle telemetry, protocol normalization, and presentation in the live dashboard; separate branches support target estimation from camera/gimbal and terrain data, frontend replay/simulation, and post-flight review. Paths and relationships for unsampled capabilities rely on the README or SOURCE INDEX; those files establish documented or referenced connections, not uninspected implementation details.
Main entry points: App.tsx Dashboard composition · useReplayController.ts Replay controller · lib.rs Desktop serial runtime · useTargetEstimation.ts Estimation hook
Components 25
Connection runtimes
- Desktop serial runtime
apps/desktop/src-tauri/src/lib.rs - CRSF framing
apps/desktop/src-tauri/src/crsf.rs - Terrain DEM access
apps/desktop/src-tauri/src/dem.rs - Node server routes
apps/server/src/buildApp.ts - MAVLink serial service
apps/server/src/services/serialMavlinkService.ts - Browser serial link
apps/web/src/link/webSerialLink.ts - Telemetry source hook
apps/web/src/hooks/useTelemetrySource.ts
Operator dashboard
- Dashboard composition
apps/web/src/App.tsx - Live map
apps/web/src/components/MapPanel.tsx - Telemetry sidebar
apps/web/src/components/TelemetrySidebar.tsx - Video and target panel
apps/web/src/components/VideoPanel.tsx
Telemetry model
- Shared telemetry model
packages/shared/src/index.ts - Telemetry state store
packages/shared/src/telemetry/telemetryStore.ts
Replay and review
- Replay controls
apps/web/src/components/ReplaySimPanel.tsx - Replay controller
apps/web/src/hooks/useReplayController.ts - Log parser
apps/web/src/replay/parser.ts - Event reconstruction
apps/web/src/replay/reconstruct.ts - Simulation generator
apps/web/src/replay/simulation.ts - Flight review analysis
apps/web/src/flightReview/deriveFlightReview.ts - Flight review view
apps/web/src/components/flightReview/FlightReviewView.tsx
Target estimation
- Estimation hook
apps/web/src/hooks/useTargetEstimation.ts - Estimation session
packages/target-estimation/src/session.ts - Terrain ray estimator
packages/target-estimation/src/estimateTarget.ts
Other components
- UAV operator
- Flight controller / radio
Connections 32
- UAV operator → Desktop serial runtime: connects through
README.md - Flight controller / radio → Desktop serial runtime: sends serial telemetry
README.md - Desktop serial runtime → CRSF framing: uses framing
apps/desktop/src-tauri/src/lib.rs - Desktop serial runtime → Terrain DEM access: loads terrain
apps/desktop/src-tauri/src/lib.rs - UAV operator → Browser serial link: grants port
README.md - Flight controller / radio → Browser serial link: sends serial telemetry
README.md - UAV operator → Node server routes: connects through
README.md - Flight controller / radio → MAVLink serial service: sends MAVLink
README.md - Node server routes → MAVLink serial service: routes to
apps/server/src/buildApp.ts - MAVLink serial service → Telemetry state store: applies MAVLink frames
apps/server/src/services/serialMavlinkService.ts - Desktop serial runtime → Shared telemetry model: produces normalized state
README.md - MAVLink serial service → Shared telemetry model: updates shared state
apps/server/src/services/serialMavlinkService.ts - Telemetry source hook → Browser serial link: selects live source
- Telemetry source hook → Dashboard composition: supplies telemetry
apps/web/src/App.tsx - Dashboard composition → Live map: renders
apps/web/src/App.tsx - Dashboard composition → Telemetry sidebar: renders
apps/web/src/App.tsx - Dashboard composition → Video and target panel: renders
apps/web/src/App.tsx - UAV operator → Replay controls: loads replay
README.md - Replay controls → Replay controller: controls
apps/web/src/components/ReplaySimPanel.tsx - Replay controller → Log parser: parses logs
apps/web/src/hooks/useReplayController.ts - Replay controller → Event reconstruction: folds events
apps/web/src/hooks/useReplayController.ts - Replay controller → Simulation generator: generates events
apps/web/src/hooks/useReplayController.ts - Replay controller → Dashboard composition: feeds dashboard
- Dashboard composition → Flight review analysis: requests analysis
apps/web/src/App.tsx - Flight review analysis → Event reconstruction: reconstructs events
apps/web/src/flightReview/deriveFlightReview.ts - Dashboard composition → Flight review view: renders review
apps/web/src/App.tsx - UAV operator → Estimation hook: configures estimation
README.md - Estimation hook → Estimation session: updates session
apps/web/src/hooks/useTargetEstimation.ts - Estimation session → Terrain ray estimator: estimates target
packages/target-estimation/src/session.ts - Estimation hook → Terrain DEM access: loads DEM terrain
- Dashboard composition → Estimation hook: requests estimate
apps/web/src/App.tsx - Estimation hook → Video and target panel: provides target result