MATLAB: My PARROT Minidrone motors are not spinning

electric_motor_controlEmbedded Coderminidronesparrotparrot minidronespower_electronics_controlsimulink

Even after successfully generating code for the model, the minidrone motors are not spinning.

Best Answer

First, ensure that the PARROT Minidrone is connected over Bluetooth to the host computer. In MATLAB Command Window, execute: 
>> rs = codertarget.parrot.internal.parrotminidrone();
After generating code for the model, if the motors do not spin after you execute the following command,
>> rs.startDroneFlight
then you should ensure that the PowerGain is non-zero with the following command:
>> rs.getPowerGain