Rigid body dynamics model
Submodule RigidBody provides simulation algorithm for the simple rigid body spacecraft attitude dynamics. This model does not include the flexible structural appendages.
FlexibleSpacecraft.DynamicsBase.RigidBody — Modulemodule RigidBodymodule that consists variables and functions needed for the simulation of rigid body spacecraft attitude dynamics. Internal module for FlexibleSpacecraft.jl
Usage
include("RigidBody.jl")
using .RigidBodyParameter settings for rigid body attitude dynamics
Parameter setting YAML files should be organized as follows:
property: dynamics
name: example spacecraft
note: This model is for test purpose
dynamicsmodel: Rigid body # This must be set `Rigid body`
platform:
inertia: [ # inertia matrix of the spacecraft
50000, 0, 0,
0, 50000, 0,
0, 0, 50000
]dynamicsmodel should be set Rigid body to tell the software that you are using the rigid body dynamics model.
Public interfaces
FlexibleSpacecraft.DynamicsBase.RigidBody.RigidBodyModel — Typestruct RigidBodyModelData container of rigid body spacecraft model. Used to specify and configure the parameter settings for simulation and control model in FlexibleSpacecraft.jl
Fields of struct RigidBodyModel
inertia::SMatrix{3, 3, Float64}: Inertia matrix of spacecraft platform
FlexibleSpacecraft.DynamicsBase.update_angularvelocity — Functionupdate_angularvelocityupdate the angular velocity of the angular velocity of the attitude dynamics. Interface to the individual functions implemented in each submodules
Arguments
model: dynamics model for the atittude dynamicscurrentTime::Real: current timeangularvelocity::AbstractVector{<:Real}: angular velocity vectorTsampling::Real: sampling period for the dynamics simulationcurrentbodyframe::Frame: current frame variable of the spacecraft's body fixed framedistinput::AbstractVector{<:Real}: disturbance input vectorstraccel::AbstractVector{<:Real}: acceleration of the structural response of the flexible appendagesstrvelocity::AbstractVector{<:Real}: velocity of the structural response of the flexible appendages