I need to do this route, I have one that runs in a circle but I have no idea of doing it for a square like the one in the image.
In addition, I must do it with these data.
My simulink model for the circle is the following.
I am attaching my two files to generate the model.