Building a 200 mph drone with a custom real-time operating system.
Project details
This project focuses on creating a 200 mph drone powered by a custom Real-Time Operating System (RTOS). The RTOS is designed for minimal latency and efficient task scheduling to handle critical flight stabilization calculations, ensuring safety and performance at extreme speeds. This ambitious endeavor aims to push the boundaries of drone technology.
The 200-MPH Drone RTOS project aims to develop a high-speed drone capable of reaching velocities up to 200 mph by creating a custom, ground-up Real-Time Operating System (RTOS). This initiative focuses on the software component, emphasizing the scheduling of processes and the execution of PID loops with minimal latency to ensure precise flight control.
Achieving safe and reliable control of a quadcopter at such extreme speeds requires advanced computational handling. This project overcomes the limitations of conventional cooperative loop structures, where a delayed calculation or blocked process can result in significant control errors. The repository features a hybrid RTOS designed specifically for the STM32F7 (ARM Cortex-M7) microcontroller, addressing the need for ultra-low latency and deterministic flight operations.
Given the exigencies of flight stabilization at 200 MPH, the hybrid RTOS separates task execution into two functional zones:
PendSV exception vector to ensure fast, deterministic task switching.An interactive simulation environment powered by Renode allows users to observe the kernel's preemption capabilities in real-time on a virtual STM32F7 setup. The simulation features:
/src/flight: Contains core flight control application code, including IMU processing and CRSF radio packet handling./src/rtos: Houses the custom RTOS kernel, including task control and scheduling mechanisms.| Phase | Name | Description | Status |
|---|---|---|---|
| #1 | Custom RTOS Kernel | Execution of preemptive and cooperative tasks under a priority-based system | Complete |
| #2 | Flight Dynamics | Implementation of low-pass filtering and state machine for OSD warnings | Complete |
| #3 | Controller Loops | Development of high-rate PID controller loops and DShot signal generation | Complete |
| #4 | Hardware Integration | Completion of Software-In-Loop (SIL) simulations for ESC and transmitter modules | Complete |
| #5 | User Features | Implementation of CLI config tools, CPP bootloader, and USBC integration for testing | Complete |
The aim is to complete the entire system integration by late August, following collaboration with hardware development to finalize the drone's build. Significant milestones are anticipated around mid-November, focusing on debugging and merging firmware components to ensure comprehensive readiness for flight operations.
Comments
0Start the conversation
Share the first comment.