MATLAB: Do I get a build error in the PARROT minidrone model

Embedded Coderminidronesparrotsimulink

Why do I get the following error while building the example model, 'parrot_gettingstarted', which is set for PARROT Rolling Spider?

Best Answer

The models configured for PARROT Rolling Spider must have 2 inports and 2 outports. The specifications of the root level ports and signals are as follows:
  1. Inport 1 is for the 'AC cmd' signal; its alias is 'Cmd_inport. Its data type is 'Bus: CommandBus' and the signal's storage class is 'ExportedGlobal'.
  2. Inport 2 is for the 'Sensors' signal; its alias is 'sensor_inport'. Its data type is 'Bus: SensorsBus' and the signal's storage class is 'ExportedGlobal'.
  3. Outport 1 is for the 'Actuators' signal; its alias is 'motors_outport'. Its data type is 'double' and the signal's storage class is 'ExportedGlobal' with a size of 4.
  4. Outport 2 is for the 'Flag' signal; its alias is 'flag_outport'. Its data type is 'uint8' and the signal's storage class is 'ExportedGlobal' with a size of 1.
Based on the error message, the issue could be due to one of the following cases:
  1. The ‘Flag’ Outport is not present in the model.
  2. The ‘Flag’ Outport is present in the model, however the signal into the port is not of the type specified in above table.
  3. The ‘Flag’ Outport is present in the model at the root level and the signal into the port is of the type specified in the above table. However, the signal in the subsystem, leading up to the root level ‘Flag’ Outport is fed with a ‘Ground’ source block.