Skip to content
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

Drone Arm Control #864

Closed
IvanOrfanidi opened this issue Jan 21, 2022 · 4 comments
Closed

Drone Arm Control #864

IvanOrfanidi opened this issue Jan 21, 2022 · 4 comments

Comments

@IvanOrfanidi
Copy link

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
Copy link
Contributor

dji-dev commented Jan 21, 2022

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
Copy link
Author

On firmware 03.00.0101.

@dji-dev
Copy link
Contributor

dji-dev commented Jan 24, 2022

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

ErrorCode::ErrorCodeType killSwitch(KillSwitch cmd,int wait_timeout,

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
Copy link
Author

Thank You Dear Friend. I used:
auto killswitchclient = n.ServiceClient<dji_osdk_ros::killswitch>("/kill_switch");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants