0

The image below is the quadrotor model in simulink, now it's following a path made of sine waves for x and y.

If I want the quadrotor to follow a path made of predefined x,y,z values, how can I specify that?

sl_quadrotor

2
  • I see predefined z=-4. Can you made the x and y for the same way? Commented Dec 24, 2015 at 14:26
  • Yes I can do that, but then it is just one value. What I want to do is to define a "via-points" path. I want the quadrotor to follow a path of for example x,y,z: [ 1 1 0; 1 1 2; 1 1 4, 2 1 4 ... etc] Commented Dec 24, 2015 at 17:02

1 Answer 1

1

The most logical way to do this is to create an arbitrary timeseries variable in MATLAB and then use it as an input in Simulink using a "Read data from workspace" block

Sign up to request clarification or add additional context in comments.

1 Comment

That worked, thanks. I am plotting a polygon on a figure in the workspace, is it possible to let the quadrotor fly on the same figure on which I am plotting?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.