DJI Mini 3 pro virtual stick heading
已完成Hello
We are developing an Android app based on MSDK v5.9.0 example to control DJI Mini 3 pro via RC-N1 controller. We use virtual stick to control flight of the drone through waypoints specified in our own navigation system. It seems sometimes when we ask the drone to fly forward (right stick Y value is positive, X value is zero; left stick X and Y are zero), the drone really moves 5...20 degrees left or right relative to its nose direction. Yaw angle doesn't drift, but the direction of the movement is not exactly forward as we wanted. It seems the direction error appears after rotations near the waypoint, when drone changes its heading to fly to the next waypoint. Usually the error disappears after next rotation and drone continues forward movement precisely.
We have two questions regarding this problem:
1. Is any way in MSDK to achieve precise forward movement of the drone every time? Some sort of calibration or so?
2. Can we use MSDK v5 to get the real movement direction relative to the nose of the drone? In this case we will be able to adjust right virtual stick X and Y to get wanted forward movement.
Thank you in advance for the answers.
-
Dear Developer, Hello and thank you for reaching out to DJI Innovations. 1. The waypoint mission and virtual stick features in MSDK cannot be used simultaneously. Using them together will cause flight control anomalies. You must completely stop the waypoint mission to use the virtual stick feature. 2. You can obtain the yaw, which is the heading direction, through `FlightControllerKey.KeyAircraftAttitude`. We hope that our solution meets your needs satisfactorily. We appreciate your email and wish you a wonderful day! Best Regards, DJI Innovations SDK Technical Support Team
请先登录再写评论。
评论
1 条评论