AlexS12 / FlightMechanicsSimulator.jl

Flight Mechanics Engine
MIT License
9 stars 2 forks source link

NEW: Inertia type #35

Open AlexS12 opened 3 years ago

AlexS12 commented 3 years ago

At the moment, inertia is passed to state_equations as a SMatrix. However:

Both reasons suggest that it might be a good idea to create a struct like:

struct Inertia{T}
    Ixx::T
    Iyy::T
    Izz:T
    Ixz::T
end

that could cache in its methods or store as fields IxzS, xpq, gam, xqr... and ensure that Ixz and Iyz are zero at construction time.