How ozcelik329/aeropico-fc works
AeroPico FC is RP2350 fixed-wing flight-controller firmware, with an accompanying desktop configurator. The primary runtime path acquires sensor and SBUS data, estimates vehicle state, and feeds the flight manager’s mode/control and safety decisions before actuator outputs are produced. MAVLink carries telemetry, parameters, and bench-service commands; flash storage preserves settings and calibration. The README documents the main runtime capabilities and relationships; several implementation details are unsampled, so the graph avoids inferring their internal wiring.
Main entry points: FlightManager.cpp Flight Manager · MavlinkHandler.cpp MAVLink Handler · ControlPipeline.cpp Control Pipeline · SystemBlackboard.cpp Typed Blackboard
Components 30
Acquisition and Estimation
- Sensor Drivers
src/drivers/Sensors.cpp - Sensor Pipeline
src/core/sensors/SensorPipeline.cpp - State Estimators
src/estimators - GPS Capability
src/drivers/gps/GpsManager.cpp - SBUS Receiver
src/drivers/RX.cpp - RC Pipeline
src/core/rc/RCPipeline.cpp
Flight and Safety
- Typed Blackboard
src/core/data/SystemBlackboard.cpp - Flight Manager
src/core/flight/FlightManager.cpp - Control Pipeline
src/core/control/ControlPipeline.cpp - Flight Modes
src/core/control/FlightModeController.cpp - Cascaded PID
src/core/control/PID.cpp - Fixed-Wing Mixer
src/core/control/FixedWingMixer.cpp - Failsafe Policy
src/core/safety/FailsafeManager.cpp - Preflight Gates
src/core/safety/PreflightRuntime.cpp - Health Monitoring
src/core/safety/PreflightHealth.cpp
Telemetry and Setup
- MAVLink Handler
src/telemetry/MavlinkHandler.cpp - MAVLink Transport
src/telemetry/MavlinkTransport.h - Parameter Service
src/telemetry/ParamManager.cpp - Bench Commands
src/app/MavlinkServiceCommands.cpp - Command Mailbox
src/app/ServiceCommandMailbox.h - Command Processor
src/app/ServiceCommandProcessor.cpp - Blackbox Logging
src/telemetry/Blackbox.cpp - Parameter Flash
src/storage/ParamStorage.cpp - Calibration Flash
src/storage/CalibrationStorage.cpp
Hardware Platform
- Runtime Setup
src/main.cpp - Task Scheduler
src/core/scheduling/Scheduler.cpp - Servo Outputs
src/drivers/Output.cpp
Other components
- AeroPico Configurator
tools/aeropico-configurator/src/renderer/app.js - Ground Stations
- Airframe Servos
Connections 31
- Runtime Setup → Flight Manager: initializes
src/main.cpp - Runtime Setup → Task Scheduler: configures tasks
src/main.cpp - Sensor Drivers → Sensor Pipeline: feeds samples
README.md - Sensor Pipeline → State Estimators: estimates state
- State Estimators → Typed Blackboard: publishes state
README.md - SBUS Receiver → RC Pipeline: provides input
README.md - RC Pipeline → Flight Manager: supplies RC state
- Sensor Pipeline → Flight Manager: supplies vehicle state
- Flight Manager → Typed Blackboard: publishes state
- Typed Blackboard → Control Pipeline: provides typed state
README.md - Flight Manager → Control Pipeline: updates control
- Control Pipeline → Flight Modes: delegates modes
- Control Pipeline → Cascaded PID: runs cascaded PID
README.md - Cascaded PID → Fixed-Wing Mixer: computes actuator demand
README.md - Flight Manager → Failsafe Policy: evaluates failsafe
- Preflight Gates → Health Monitoring: checks readiness
README.md - Failsafe Policy → Fixed-Wing Mixer: overrides outputs
README.md - Fixed-Wing Mixer → Servo Outputs: sets servo demand
README.md - Servo Outputs → Airframe Servos: drives
README.md - Ground Stations → MAVLink Transport: sends MAVLink
README.md - MAVLink Transport → MAVLink Handler: carries messages
README.md - MAVLink Handler → Ground Stations: returns telemetry
README.md - MAVLink Handler → Parameter Service: handles parameters
src/telemetry/ParamManager.cpp - Parameter Service → Parameter Flash: persists settings
README.md - MAVLink Handler → Bench Commands: dispatches commands
README.md - Bench Commands → Command Mailbox: queues work
- Command Mailbox → Command Processor: delivers commands
- Command Processor → Calibration Flash: uses calibration
- AeroPico Configurator → Ground Stations: acts as GCS
README.md - Flight Manager → Blackbox Logging: records flight data
README.md - GPS Capability → Typed Blackboard: provides GPS capability
README.md