Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 2.07 KB

faq.md

File metadata and controls

34 lines (17 loc) · 2.07 KB

FAQ

Why was DroneCore written in C++

The aim was to have an API in a language which is cross-platform and has many language bindings. Additionally, the library needs to be lightweight and fast, so it does not fall over for onboard usage with high rate messaging.

Does DroneCore support multiple vehicles?

Yes, DroneCore is designed to support multiple vehicles. A vehicle is called a device in DroneCore.

A device needs to have a specific mavlink system ID but can consist of multiple components with different component IDs. An example would be a drone with a gimbal and a camera talking mavlink with the same system ID but different component IDs.

The limit is in theory 255 vehicles for system IDs ranging from 1 to 255.

Are serial connections supported?

The architecture has stubs for serial, TCP, and UDP connections. However, only UDP connections are implemented right now.

Why is libCURL a dependency?

libCURL will be required to download the camera definition file which is referenced in CAMERA_INFORMATION. It might also come in handy whenever any other REST resources are required.

How are plugins added?

Plugins need to have the correct structure and be placed in the plugins directory. It is also possible to add external plugins which are outside of the DroneCore tree. For instructions see the build docs.

Can a plugin depend on another one?

Yes it can but it should not! The idea is that plugins don't have any coupling between each other which allows for any plugin to be changed or removed without breaking the rest. This will lead to some duplication at places, that's an acceptable trade-off. If the same code is used in many places, it can always be moved to core and get re-used from there.

What is the difference between unit and integration test?

The unit tests are only concerned with one plugin or less. The integration tests however might need PX4 SITL running and combine multiple plugins.