VirtualStickAdvancedParam stops execution after 1 sec
已完成Hello,
I'm trying to implement Yaw rotation via Virtual Stick Advanced Param, but it doesn't work as expected. Whenever I send a param, the drone starts execution of it, makes some turn and stops after a second or maybe less. It doesn't fully rotate to the angle I've set. I have to send the param several time to make him reach the heading.
Am I do something wrong?
val param = VirtualStickFlightControlParam()
param.yaw = 20.0
param.roll = 0.0
param.pitch = 0.0
param.verticalThrottle = 0.0
param.yawControlMode = YawControlMode.ANGLE
param.verticalControlMode = VerticalControlMode.VELOCITY
param.rollPitchControlMode = RollPitchControlMode.VELOCITY
param.rollPitchCoordinateSystem = FlightCoordinateSystem.GROUND
VirtualStickManager.getInstance().sendVirtualStickAdvancedParam(param)
-
The Virtual Stick function requires parameters to be sent at a certain frequency. You need to send parameters at a frequency between 5Hz and 25Hz. https://sdk-forum.dji.net/hc/en-us/articles/8697869415577-Chapter-7-The-virtual-stick
请先登录再写评论。
评论
1 条评论