dji-sdk / Onboard-SDK-ROS

Official ROS packages for DJI onboard SDK.
443 stars 309 forks source link

Yaw Command #478

Open sinashm opened 2 years ago

sinashm commented 2 years ago

Hello,

I am trying to send yaw or yaw rate commands through the rosservice to our DJI 300-RTK and the yaw is not changing. I appreciate it if you can assist us. So, the velocity or position commands are working and DJI responds to it but the yaw is not changing.

case FlightTaskControl::Request::TASK_POSITION_AND_YAW_CONTROL:

rosservice call /flight_task_control "task: 3 joystickCommand: {x: 1.0, y: 0.0, z: 0.0, yaw: 1.0} velocityControlTimeMs: 0 posThresholdInM: 0.0 yawThresholdInDeg: 0.0"

or

case FlightTaskControl::Request::TASK_VELOCITY_AND_YAWRATE_CONTROL:

rosservice call /flight_task_control "task: 5 joystickCommand: {x: 1.0, y: 0.0, z: 0.0, yaw: 1.0} velocityControlTimeMs: 0 posThresholdInM: 0.0 yawThresholdInDeg: 0.0"

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #54058:

尊敬的开发者,感谢您联系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

°°°

dji-dev commented 2 years ago

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

Dear developer ,

Thank you for contacting DJI.

The YAW parameter is an angle value. You can set a larger angle(you set 1.0) and check the YAW angle in the DJI Assistant2 simulator, for example, set YAW to 30

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

Best Regards, DJI SDK Support Team

°°°