dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
912 stars 632 forks source link

Drone Arm Control #864

Closed IvanOrfanidi closed 2 years ago

IvanOrfanidi commented 2 years ago

Hello Dear friend. Tell me, I'm trying to turn off the drone's engines to land it in an emergency. The drone is in the air. Executing the command: /dji_osdk_ros/drone_arm_control 0 But it's a mistake to come back: ERROR: Service [/dji_osdk_ros/drone_arm_control] is not available. This is necessary to turn off the drone from the parachute data.

How do I turn off the engines when the drone is in flight?

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #59580:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

IvanOrfanidi commented 2 years ago

On firmware 03.00.0101.

dji-dev commented 2 years ago

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

Dear developer ,

Thank you for contacting DJI.

Emergency stop during flight, please use API: killSwitch

OSDK ROS is developed with the OSDK (Linux) API, and this API is defined in the OSDK Linux https://github.com/dji-sdk/Onboard-SDK/blob/d08abe61768f50486ff10bca991c524e6308a011/osdk-core/api/inc/dji_flight_controller.hpp#L648

Note: This API will automatically stop the propeller and crash. It is recommended to use it after full simulation and verification in the simulator to ensure safety.

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

Best Regards, DJI SDK Support Team

°°°

IvanOrfanidi commented 2 years ago

Thank You Dear Friend. I used: _auto killswitchclient = n.ServiceClient("/killswitch");