-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading ALL Remote Control channels #70
Comments
Hi Nikolay, Those six values are the only RC Data fields available through the open protocol. The The video most likely uses information from other parts of the SDK (e.g. flight status for LAND, OFF display and battery percentage from the BroadcastData). |
I made that video. I dont use the SDK for the onboard, I wrote my own code I wrote my code from nothing, it consists of a class which interprets the On Wed, Nov 9, 2016 at 11:15 PM, Rohit Sant [email protected]
|
@jasperza That's very cool! We do provide a single-threaded DJI Onboard SDK implementation for STM32, but for the computing budget of an Arduino the smart answer in many cases is to implement your own protocol parser that only deals with the messages you're interested in. Thanks for sharing the video! |
@jasperza Thanks a lot for sharing! |
Pleasure! The class also prepares and outputs data back to the drone for flight We have control over all the directions of travel, we communicate with our The arduino monitors the rc signals from the drone over the serial port This means that the operator can make quick, small adjustments to one or On Nov 12, 2016 13:45, "Nikolay Nikolov" [email protected] wrote:
|
Hi, I'm starting to develop my own app using osdk stm32 discovery and A3 flight controller. It has come to my attention that to run the code from the samples (https://github.com/dji-sdk/Onboard-SDK/tree/3.1/sample/STM32) using MDK-ARM (Keil uVision) toolchain it is requairing a license because of the size of the code. I'm wondering if @nikonikolov were successful i wold like to know how did you set up your model. also, @jasperza, I'm open in terms of software to cominicate with the flight controler and using Arduino is a possibility for me, if its possible could you give me more details on how you did your set up. I want to take control of yaw with an external parameter and maintain control of everything else with the controller. I've used arduino to read what is coming out from the flight controller but at this point is only data that doesn't give me any information because i don't know when to start reading and when to stop. Thanks ! |
You have to read each byte that comes from the serial port and make a
decision what to do with it and how that changes the remainder of the
message. There's no easy way to do it. It's a few thousand lines of arduino
code. Just get the message from the drone, identify each type of sub
message, and process it depending on message type.
…On 4 Dec 2017 3:20 am, "camilojimo" ***@***.***> wrote:
Hi, I'm starting to develop my own app using osdk stm32 discovery and A3
flight controller. It has come to my attention that to run the code from
the samples (https://github.com/dji-sdk/Onboard-SDK/tree/3.1/sample/STM32)
using MDK-ARM (Keil uVision) toolchain it is requairing a license because
of the size of the code. I'm wondering if @nikonikolov
<https://github.com/nikonikolov> were successful i wold like to know how
did you set up your model. also, @jasperza <https://github.com/jasperza>,
I'm open in terms of software to cominicate with the flight controler and
using Arduino is a possibility for me, if its possible could you give me
more details on how you did your set up. I want to take control of yaw with
an external parameter and maintain control of everything else with the
controller. I've used arduino to read what is coming out from the flight
controller but at this point is only data that doesn't give me any
information because i don't know when to start reading and when to stop.
if you @jasperza <https://github.com/jasperza> could explain me in more
detail how to ('interprets the binary data directly from the DJI serial
UART port onboard.I adapts to different messages being sent. It processes
the data byte by byte, and bit by bit.') i would very much appreciate that
Thanks !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMCBElYd1H7GuXCws2_eEIk6s5LzJXJ8ks5s87lPgaJpZM4Kt-0j>
.
|
@camilojimo I used a Raspberry Pi and developed on Linux. Never actually ran the samples code and did not need any license for my custom app. I would recommend switching to Linux toolchains as this will save you a lot of headaches. |
* commit '2f298000fe70510c4042fa1a582a680f9da325a2': fix: turn on avoid enable switch after land fix: use the nema satellite index as data index fix: modify the timesync data sytle fix: fix the log sample
Looking though the code it seems like the struct read from the DJI autopilot returns
RCData
struct which only contains the roll, pitch, yaw, throttle, mode and gear signals. There is another structVirtualRCData
which contains all channels but it does not seem to be used anywhere. How can I read all the channels from the remote control. Apparently this is possible according to this https://www.youtube.com/watch?v=_9VR9IQP7QMThe text was updated successfully, but these errors were encountered: