Coder Social home page Coder Social logo

Comments (5)

adam3039 avatar adam3039 commented on September 26, 2024 1

I'm also curious about this, because on the DJI website, it says the Guidance SDK is deprecated, and suggests using the Onboard SDK.

from guidance-sdk.

dimitrios1988 avatar dimitrios1988 commented on September 26, 2024

I have done. I changed the cmake of the onboardsdk to include the guidancesdk. I have also changed the name of a variable in the onboardsdk source because there was a conflict.

from guidance-sdk.

pifordi avatar pifordi commented on September 26, 2024

I have also done it and develop an algorithm. My drone avoid obstacles now. I used guidance-sdk and onboard-sdk.

Firstly, inlude guidance headers on main.cpp at flight-control sample.
// ** Guidance header **//
#include "Guidance/uart_example/crc16.h"
#include "Guidance/uart_example/crc32.h"
#include "Guidance/uart_example/protocal_uart_sdk.h"
#include "Guidance/uart_example/linux/serial.h"
#include "Guidance/include/DJI_guidance.h"

Then. edit cmake file on linux/sample/flight-control as adding executables.

add_executable(${PROJECT_NAME} ${SOURCE_FILES}
Guidance/uart_example/crc16.cpp
Guidance/uart_example/crc32.cpp
Guidance/uart_example/protocal_uart_sdk.cpp
Guidance/uart_example/linux/serial.cpp
telemetry/telemetry_sample.cpp)
target_link_libraries(${PROJECT_NAME} djiosdk-core libDJI_guidance.so)

And also change CMAKE_CXX_FLAGS;

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -g -fno-stack-protector -O0")

Now, you can develop your own algorithm. I also add telemetry library for I want Guidance sensors is activated when the drone is in air because the guidance sensors detect trivial obstacles when the drone is in ground. And as a second activation of guidance sensor I have also use landing gear button on the RC. In conclusion, when landing gear is on and the drone is in air, then guidance sensors is activated.

from guidance-sdk.

adam3039 avatar adam3039 commented on September 26, 2024

Thanks for the example @SemihYildirim

I was curious if anyone officially from DJI had any insight on why the Guidance SDK was deprecated, and what the plan is going forward. I'd hate to do a bunch of work with the Guidance SDK and have it be for nothing if it's not supported in the future.

Thanks

from guidance-sdk.

dangviethieu-hntv avatar dangviethieu-hntv commented on September 26, 2024

@SemihYildirim I also develop my project with guidance add to onboard-sdk. I get some infor from guidance like : velocity, imu, obstancle distance, global position ... But I found that, it's value always unstable, when drone stops and do not thing, value from guidance still change. I wonder if you have the same problem ?

from guidance-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.