OSDK 4.1 (or master branch) compilation failure
已完成Good day,
Just after cloning the OSDK (either '4.1' or 'master' branch), compiling the OSDK results in a failure due to two errors (attached below).
Steps to reproduce:
git clone https://github.com/dji-sdk/Onboard-SDK.git
> or: git clone -b 4.1 https://github.com/dji-sdk/Onboard-SDK.git
cd Onboard-SDK
cmake -S . -B build
cd build
make
The error is apparently solved by adding
#include <cstdio> // to osdk-core/modules/src/filemgr/impl/mmap_file_buffer.cpp
#include <string> // to osdk-core/modules/inc/filemgr/impl/mmap_file_buffer.hpp
Error:
-
Ok! Thank you for the fast response!
However, is it possible to use OSDK 4.1 with M300 RTK instead of the PSDK 3.x? We are only interested on the OSDK functionalities, at this moment we don't have any payload defined. The error I sent is not related to any specific drone, it's just compiling the recently cloned OSDK, which should be successful AFAIK.
In addition, we have questions on pivoting to PSDK 3.x for M300 RTK. After having a glance to the PSDK documentation, we are unsure if we need the SDK Round Robin cable for a custom onboard computer (rpi). In the documentation of the OSDK Expansion Module there's no info about this cable.
Thanks for your time.
-
OSDK 4.1 can continue to be used for the development of M300. In fact, PSDK 3.x can be developed on both OSDK port and PSDK port. PSDK3.x is used for M300 OSDK type C port development and the hardware connection and function of OSDK 4.1 are exactly the same, SDK Round Robin cable is a part of OSDK extension module. OSDK extension module also includes modules that expand type C to UART, USB, and XT30 ports. This part can also be self-made according to the type C pins definitions.
请先登录再写评论。
评论
3 条评论