dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
997 stars 580 forks source link

turn off motors while flying #1223

Open AhmedHMoustafa opened 1 year ago

AhmedHMoustafa commented 1 year ago

Is there anyway to turn off the motors while flying through the android-sdk?

Maybe something similar to the killSwitch() on the onboard sdk.

The already present turnOffMotors() method only works while the aircraft is on the ground.

Aircraft type: Mavic 2.

Thanks in advance.

DJI-William commented 1 year ago

There is only setUrgentStopModeEnabled in MSDK which enable a urggent stop mode. You still need to push the RC stick to do that. Only support for P4R. MSDK does not provide the very basic API as OSDK and this is a very dangerous action to stop the motor in air.