Onboard-SDK
Onboard-SDK copied to clipboard
Set maximum speed when moving by position offset (M300)
Hello,
I wanted to know if it was possible to choose the maximum velocity when sending move by position offset command using the joystick command.
I'm using the joystick command with the joystick mode in horizontal/vertical position like in the function moveByPositionOffset() from the code sample: https://github.com/dji-sdk/Onboard-SDK/blob/d08abe61768f50486ff10bca991c524e6308a011/sample/core/src/flight_sample.cpp#L171-L174
The drone is flying with a maximum speed of around 3 m/s horizontally and I wanted to know if it was possible to increase that. I also want to point out that I already try commenting out the line using horizCommandLimit() but the speed was still limited to 3m/s. https://github.com/dji-sdk/Onboard-SDK/blob/d08abe61768f50486ff10bca991c524e6308a011/sample/core/src/flight_sample.cpp#L234
Agent comment from DJI SDK in Zendesk ticket #59912:
尊敬的开发者,感谢您联系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
°°°
Agent comment from kyle.cai in Zendesk ticket #59912:
Dear developer ,
Thank you for contacting DJI.
The function moveByPositionOffset() use position mode to control the drone, the speed can't be set. if you want to control the drone with speed, you can set the joystickMode to VERTICAL_VELOCITY/HORIZONTAL_VELOCITY
Thank you for your understanding and support, hope you have a nice day.
Best Regards,
DJI SDK Support Team
°°°