How mustafaklee/uav-ground-control-station works
This is a modular UAV ground-control station: operators register vehicles, establish MAVLink links, monitor telemetry, plan and upload missions, and send authorized, audited commands. The principal workflow runs from the Avalonia desktop through REST/SignalR APIs and application handlers to domain rules and MAVLink or persistence adapters. Separate branches cover sign-in, fleet management, topology, telemetry history, event delivery, and simulation. Relationships are based on README architecture and capability statements plus the supplied source index and excerpts; unsampled internals are represented at subsystem level.
Main entry points: Program.cs HTTP API · VehicleLinkManager.cs MAVLink links · MissionHandlers.cs Mission planning · GcsDbContext.cs PostgreSQL persistence
Components 22
Operator client
- Avalonia desktop
src/Gcs.Desktop/App.axaml.cs
API and application
- HTTP API
src/Gcs.Api/Program.cs - Authentication
src/Gcs.Application/Security/AuthHandlers.cs - Vehicle management
src/Gcs.Application/Vehicles/VehicleQueryHandlers.cs - Vehicle links
src/Gcs.Application/Vehicles/VehicleLinkHandlers.cs - Mission planning
src/Gcs.Application/Missions/MissionHandlers.cs - Command handling
src/Gcs.Application/Commands/CommandHandlers.cs - Network topology
src/Gcs.Application/Network/GetNetworkTopologyHandler.cs
Flight domain
- Vehicle rules
src/Gcs.Domain/Vehicles/Vehicle.cs - Mission rules
src/Gcs.Domain/Missions/Mission.cs - User security rules
src/Gcs.Domain/Users/User.cs
Runtime adapters
- MAVLink links
src/Gcs.Mavlink/Connections/VehicleLinkManager.cs - MAVLink protocol
src/Gcs.Mavlink/Protocol/MavlinkFrameParser.cs - Telemetry pipeline
src/Gcs.Telemetry/TelemetryPipeline.cs - Live updates
src/Gcs.Api/Realtime/SignalRLiveUpdatePublisher.cs - Mission transfer
src/Gcs.Mavlink/Missions/MissionTransfer.cs - Vehicle simulator
src/Gcs.Mavlink/Simulation/SimulatedVehicleRunner.cs
State and events
- PostgreSQL persistence
src/Gcs.Persistence/GcsDbContext.cs - Outbox dispatch
src/Gcs.Infrastructure/Outbox/OutboxDispatcher.cs - RabbitMQ events
src/Gcs.Messaging/RabbitMqEventPublisher.cs
Other components
- Operator
- UAV / PX4
Connections 27
- Operator → Avalonia desktop: operates
README.md - Avalonia desktop → HTTP API: REST requests
README.md - Avalonia desktop → Live updates: SignalR updates
README.md - HTTP API → Authentication: routes requests
README.md - HTTP API → Vehicle management: routes requests
README.md - HTTP API → Vehicle links: routes requests
README.md - HTTP API → Mission planning: routes requests
README.md - HTTP API → Command handling: routes requests
README.md - HTTP API → Network topology: routes requests
README.md - Authentication → User security rules: applies rules
src/Gcs.Application/Security/AuthHandlers.cs - Vehicle management → Vehicle rules: applies rules
src/Gcs.Application/Vehicles/VehicleQueryHandlers.cs - Vehicle links → Vehicle rules: updates link intent
src/Gcs.Application/Vehicles/VehicleLinkHandlers.cs - Mission planning → Mission rules: validates plans
src/Gcs.Domain/Missions/Mission.cs - Command handling → MAVLink links: sends commands
- Mission planning → Mission transfer: uploads missions
- Vehicle links → MAVLink links: controls links
- MAVLink links → MAVLink protocol: parses frames
src/Gcs.Mavlink/Connections/VehicleLinkManager.cs - MAVLink links → UAV / PX4: communicates MAVLink
README.md - Vehicle simulator → MAVLink links: simulates link
- MAVLink links → Telemetry pipeline: feeds telemetry
README.md - Telemetry pipeline → Live updates: publishes live state
README.md - Telemetry pipeline → PostgreSQL persistence: stores history
README.md - Vehicle management → PostgreSQL persistence: reads and writes
- Mission planning → PostgreSQL persistence: reads and writes
- PostgreSQL persistence → Outbox dispatch: stores events
src/Gcs.Persistence/GcsDbContext.cs - Outbox dispatch → RabbitMQ events: publishes events
README.md - Network topology → MAVLink links: reads topology