Applicable models: M210 series, M210 V2 series, M600 pro, A3, N3
SDK version: OSDK3.7 & OSDK3.8
DJI's OSDK provides an option to conduct an emergency shutdown of DJI's aircraft's motor mid-air via KillSwitch.
You can see below for a code sample illustrating how to program this.
*Please note that once this feature is used, the aircraft will fall immediately and it is recommended that you test this in simulation first*
Vehicle->control->killSwitch(DJI::OSDK::Control::KillSwitch::ENABLE, (char *)"OSDK_API", 0, 0);
The details of this function are as follows: