Open tuanbipa opened 5 years ago
I am using this function to rotate drone an angle as required.
List<TimelineElement> elements = new ArrayList<>(); float angle = 30; float velocity = 10; AircraftYawAction aircraftYawAction = new AircraftYawAction(angle, velocity); elements.add(aircraftYawAction); MissionControl missionControl = MissionControl.getInstance(); if (missionControl.scheduledCount() > 0) { missionControl.unscheduleEverything(); missionControl.removeAllListeners(); } missionControl.scheduleElements(elements); missionControl.addListener(listener);
The angle will be from -180 to 180 degrees.
Sometimes there are 2 errors:
DJI Android SDK: 4.8.1 DJI Product: P3P Android system version: 7.1.1 Android device: Sky a900 Android Studio version: 3.2.1
Please report your issue to dev@dji.com, as it's our official channel for developers to request DJI SDK support now.
I am using this function to rotate drone an angle as required.
The angle will be from -180 to 180 degrees.
Sometimes there are 2 errors:
DJI Android SDK: 4.8.1 DJI Product: P3P Android system version: 7.1.1 Android device: Sky a900 Android Studio version: 3.2.1