Onboard-SDK-ROS icon indicating copy to clipboard operation
Onboard-SDK-ROS copied to clipboard

Failsafe error when OSDK disconected in 3.8.1

Open Xachap opened this issue 4 years ago • 2 comments

My development team and I have found a non-desirable behaviour of the ROS-OSDK about Failsafe. Actually, we are developing a system (using Manifold 2) for avoiding obstacles with the A3 PRO controller, and in DJI Assistant 2 the option “Failsafe SDK” is activated and in hovering mode. Despite of this, if there is a communication fail between Manifold and A3, it is not detected by the flight controller, and it continues with the mission instead of starting hovering. This causes a serious failure in our use case because it is not possible to continue without the avoid obstacle functionality given by our sensors (due to collision risk), and it is impossible for the pilot in order to identificate it. We are using ROS-OSDK 3.8.1 version, and we don't have checked it in the current one.

How to reproduce this error:

Executing, for example, the demo_mission from dji_sdk_demo with the DJI Assistant 2 simulator. In the middle of the execution, unplug the communication cable between the Manifold and the A3, or disconnect the power adaptor of the Manifold. The simulated drone continue the mission instead of starting hovering.

Possible solution:

Add communication control from the A3 to the OSDK (check at 1Hz or 2Hz must be enought)

Xachap avatar Sep 24 '20 14:09 Xachap

Agent comment from kyle.cai in Zendesk ticket #39522:

Dear developer ,

Thank you for contacting DJI.

This is because the waypoint mission is not controlled by OSDK. After OSDK uploads all mission points, the subsequent control actions are completed by the flight controller. Therefore, the OSDK needs to actively stop the task during the execution of the task, or use the remote control to obtain control and then control it.

If you do not use the waypoint mission but use the flightctl command, if the control command is not sent continuously, the aircraft will hover. flightctl API: flightCtrl (dji_control.hpp)

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

dji-dev avatar Sep 25 '20 11:09 dji-dev

And in new models as M210 or M300, is this feature active?

I think that could be interesting to check if there is a problem in communications or in the power supply of the Manifold 2. Thank you again.

Xachap avatar Feb 07 '21 11:02 Xachap