PDM4AR / exercises

GNU General Public License v3.0
10 stars 24 forks source link

ex11 #113

Open alezana opened 1 week ago

alezana commented 1 week ago

Draft of ex11 based on ex09.

For full testing you need to sync with the dg-commons spaceship model, you can start with some boilerplate, goal definition, evaluation metrics and so on. Please open a new branch ex11

Todos:

zipping-suger commented 6 days ago

Dynamic model for Spaceship:

  1. Position Dynamics: $\frac{dx}{dt} = v_x$ $\frac{dy}{dt} = v_y$

  2. Orientation Dynamics: $\frac{d\psi}{dt} = \dot{\psi}$

  3. Fuel Dynamics: $\frac{dm}{dt} = -CT \cdot F{\text{thrust}}$

  4. Velocity Dynamics: $\frac{dvx}{dt} = \frac{1}{m} \cdot \cos(\delta + \psi) \cdot F{\text{thrust}}$ $\frac{dvy}{dt} = \frac{1}{m} \cdot \sin(\delta + \psi) \cdot F{\text{thrust}}$

  5. Angular Velocity Dynamics: $\frac{d\psi}{dt} = -\frac{l_r}{Iz} \cdot \sin(\delta) \cdot F{\text{thrust}}$ $\frac{d\delta}{dt} = \dot{\delta}$

    Where:

    • $\delta$ is the angle of the thrusters with respect to the rocket.
    • $\psi$ is the angle of the rocket with respect to the x-axis.
    • $C_T$ is the thrust coefficient.
    • $l_r$ is the distance from the thruster to the center of mass.
zipping-suger commented 6 days ago

spaceship

alezana commented 6 days ago

@zipping-suger see comment in the other repo, regarding the picture could you add the velocity vectors and underline that they are in body frame?

zipping-suger commented 5 days ago

Sorry the previous formulation is wrong. I forgot the Coriolis term. It should be:

Dynamics:

Where:

spaceship