msdk怎么通过代码设置无人机旋转45度
Completed-
-
我这边使用后无效呢,我用的是御2行业进阶版
flightController.setYawControlMode(YawControlMode.ANGLE);
Timer timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
flightController.sendVirtualStickFlightControlData(new FlightControlData(0, 0, -70f, 0),
new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError djiError) {
if (djiError==null){
Log.i("qqqqq旋转无人机","调整偏航角完成");
}
}
});
}
}, 0, 100); -
原地降落是不太可能的,除非你电量特别低。你可以看一下虚拟摇杆的Demo,可能是你虚拟摇杆的模式设置有问题。 Link:https://github.com/dji-sdk/Mobile-SDK-Android/blob/master/Sample%20Code/app/src/main/java/com/dji/sdk/sample/demo/flightcontroller/VirtualStickView.java
Please sign in to leave a comment.
Comments
7 comments