mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 16:10:35 +08:00
1a57488ac68e147389050752e8b6b9bbf6620a56
This fixes a race condition: uORB::Manager::get_instance() is used in a multi-thread context, but the singleton initialization was not thread-safe. Further, this avoids having to check for nullptr every time the singleton is accessed. uORB::Manager::initialize() is called when uorb is started. No one else accesses the singleton before that point, because it is only used in the orb_* methods, and in muorb. Both require uorb to be started already when they are used.
PX4 Pro Drone Autopilot
This repository holds the PX4 Pro flight control solution for drones, with the main applications located in the src/modules directory. It also contains the PX4 Drone Middleware Platform, which provides drivers and middleware to run drones.
- Official Website: http://px4.io
- License: BSD 3-clause (see LICENSE.md)
- Supported airframes (more experimental are supported):
- Multicopters
- Fixed wing
- VTOL
- Releases
- Downloads
Users
Please refer to the user documentation and user forum for flying drones with the PX4 flight stack.
Developers
This repository contains code supporting these boards:
- Snapdragon Flight
- FMUv1.x
- FMUv2.x (Pixhawk, Pixhawk 2 and Pixfalcon)
- FMUv4.x (Pixhawk X and Pixracer)
- AeroCore (v1 and v2)
- STM32F4Discovery (basic support) Tutorial
Languages
C++
51.2%
C
38.5%
CMake
4.7%
Python
3.9%
Shell
1.3%
Other
0.1%