MATLAB: How to model an error condition in the Simulink model for PARROT minidrones

Aerospace BlocksetEmbedded Coderminidronesparrotparrot minidronessimulink

How do I model an error condition in my Simulink Model for PARROT minidrones?

Best Answer

The ‘Flag’ outport should be used to model an error condition. If a non-zero signal is fed to the ‘Flag’ outport, the flight is immediately aborted. In the flight log, the non-zero value that halted the drone will be printed as the error condition.