Clear Filters
Clear Filters

Spiral motion simulation in Simulink

11 views (last 30 days)
Josh Butler
Josh Butler on 15 Jul 2022
Answered: Jianxin Sun on 23 Oct 2023
Using Simulink and the 6DOF (Euler angle) block feeding into the 6DOF animation block I am trying to create a spiral that ascends or descends. I tried using the repeating sequence stair block to input values for pitch (simulate steady ascent or descent) and yaw (simulate a steady inward spiral). Upon trying different vector configurations, I have found that my model always tends to increase the inward spiral as if the yaw moment is accelerating or something similar to this, at the point where I am lost for ideas how to make this work. My question is, how could I simulate a steady spiral? I am not sure if my problem comes from a constant velocity issue or if it is as I mention above with an accelerating yaw moment.
I have screenshot my simulink model and the animation output as well as my code from matlab that gives vector inputs to my thrust and moment inputs in simulink.
Many thanks to any that help!

Answers (1)

Jianxin Sun
Jianxin Sun on 23 Oct 2023
Hi Josh,
To generate a circular motion, you can try the following:
  1. In the initial state of 6 DOF block, set it so that it has initial tangential speed.
  2. Based on the speed and desired radius, you'll need to apply a force vector on the body that points towards the center of your circle, which might look like Fx = mV^2/r*sin(theta), Fy = mV^2/r*cos(theta), where theta = V/r*t + theta0.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!