This project implements the software for an Unmanned Aerial Vehicle (UAV), focusing on modularity, thread-safe communication, and real-time control. The system is designed to manage various components such as the flight controller, payload manager, sensor manager, and telemetry systems, running on a custom ARINC-653 RTOS library.
This project is a recipe (uav.bb) for the UAV-Yocto project to run on a microporcessor (will start running when the board is powered on by default).
To build and run this project, you will need the following:
- C++ Compiler: A C++17-compatible compiler (e.g., GCC, Clang, or MSVC).
- CMake: Version 3.15 or higher.
- Operating System: Embedded Linux (Custom Yocto build).
- Development Tools: Git for version control and a terminal for running commands.
-
Clone the repository with the submodules:
git clone --recursive <repo-url> -
Install the required dependencies. Ensure that CMake and a compatible compiler are installed on your system.
-
Configure the project using CMake
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
clang-tools --install 18
conan profile detect
conan create Inc/Hardware_Interface/third_party/conan_pigpio --build=missing
conan export Inc/Hardware_Interface/third_party
conan install . --build=missing
cmake --preset conan-release
cmake --build --preset conan-release
When you run the application, the following components will be initialized and executed:
-
Flight Controller:
- Periodically retrieves data from the battery, motor, remote controller, and sensors using asynchronous mechanisms.
-
Sensor Manager:
- Collects and processes data from onboard sensors.
-
Telemetry Manager:
- Sends telemetry data to external systems for monitoring and analysis using MAVLINK.
-
Battery Manager:
- Collects and processes data from and for the ESC battery board.
-
Remote controller:
- Sends and receive data to using SBUS.
-
Motor controller:
- Controls actuators (servos) and the pusher motor (propellers).
-
This project also includes libraries for A429, A664 and MILSTD-1553B for future upgrades (if needed).
-
The ARINC-653 RTOS library configuration (yaml) file needs to be udpated if more modules are needed to be added to the execution.(rtos_config.yaml).