MATLAB: Importing legacy models from created with MIT Toolbox

Aerospace Blockset

Can I use the models that I created with MIT Toolbox with Simulink Support package for PARROT?

Best Answer

Yes, the models created and which were working with MIT Toolbox can be used with the Simulink Support package for PARROT Minidrones, provided they follow the steps below:
1. Update the existing model to be used with Buses and 4 ports. It is mandatory to have the these 4 ports and signals through them as specified below:
 
Specifications of root level ports and signals through them
*                                                        Sl. No                     Port Type                     Data Type                     Storage class for signal through it                     Size                     Alias
                                                        *1.                            Inport (AC cmd)           Bus: CommandBus        ExportedGlobal                                                    NA                       Cmd_inport
*                                                        *2.                            Inport (Sensors)            Bus: SensorsBus            ExportedGlobal                                                    NA                       sensor_inport
*                                                        *3.                            Outport (Actuators)      double                            ExportedGlobal                                                    4                           motors_outport
*                                                        *4.                            Outport (Flag)               Uint8                             ExportedGlobal                                                    1                           flag_outport
2. You can copy paste the controller logic from the old model and update the signals in such a way that the above criteria are met.
3. If simulation works and is successful, proceed to build the model.