How skripsi-fixedwing/flightcontroller-edrones works
KHAGESWARA-FC-2026 is fixed-wing autopilot firmware. The principal workflow is scheduled sensor acquisition, state estimation, guidance and energy/attitude control, then vehicle actuation, with MAVLink and persistent configuration supporting flight operations. The excerpts establish the firmware entry point and several subsystem interfaces; many implementation files were not sampled and there is no README, so unverified runtime links are omitted rather than inferred from imports alone.
Main entry points: main.cpp Firmware entry · VehicleContext.h Vehicle context · AttitudeController.cpp Attitude control · Imu.cpp IMU driver
Components 26
Flight Integration
- Firmware entry
src/main.cpp - Vehicle context
include/modes/VehicleContext.h - Fixed-wing modes
src/modes/FixedWingModes.cpp
Sensors and Estimation
- IMU driver
src/drivers/Imu.cpp - Barometer
src/drivers/Barometer.cpp - Airspeed
src/drivers/Airspeed.cpp - GNSS receivers
include/drivers - AHRS
src/estimation/Ahrs.cpp - Altitude filter
src/estimation/AltitudeComplementaryFilter.cpp - Mahony filter
src/estimation/AttitudeMahonyFilter.cpp
Guidance and Control
- Navigation
src/navigation/Navigation.cpp - L1 guidance
src/navigation/L1Controller.cpp - L1 tuner
src/navigation/FuzzyL1Tuner.cpp - TECS
src/navigation/Tecs.cpp - Attitude control
src/control/AttitudeController.cpp - LQR axis control
src/control/LqrAxisController.cpp
Vehicle I/O
- Actuators
src/vehicle/Actuator.cpp - Radio input
src/vehicle/Radio.cpp - Battery monitor
src/vehicle/Battery.cpp
Telemetry and Persistence
- MAVLink
src/communication/Mavlink.cpp - Data logger
src/communication/DataLogger.cpp - SD logger
src/communication/SdLogger.cpp - Parameters
src/storage/Params.cpp - Waypoints
src/storage/Waypoints.cpp - IMU calibration store
src/storage/ImuCalibrationStorage.cpp
Other components
- Pilot / GCS
Connections 14
- Firmware entry → L1 guidance: constructs
src/main.cpp - Firmware entry → L1 tuner: starts
src/main.cpp - Firmware entry → TECS: constructs
src/main.cpp - Firmware entry → Navigation: constructs
src/main.cpp - Firmware entry → Attitude control: constructs
src/main.cpp - Vehicle context → Attitude control: holds reference
include/modes/VehicleContext.h - Vehicle context → IMU driver: holds reference
include/modes/VehicleContext.h - Vehicle context → AHRS: holds reference
include/modes/VehicleContext.h - Vehicle context → Navigation: holds reference
include/modes/VehicleContext.h - Vehicle context → TECS: holds reference
include/modes/VehicleContext.h - Attitude control → LQR axis control: delegates axis control
- IMU driver → IMU calibration store: persists offsets
- Pilot / GCS → Radio input: sends controls
- Pilot / GCS → MAVLink: sends commands