Simulation API
This section contains information about the API for the simulation system of FlexibleSpacecraft.jl
Our API mainly contains the following sub-modules:
ParameterSetting: API for parameter setting for simulation core
The high-level API function for the simulation is runsimulation. Basically you can run your simulation by passing all the necessary arguments into function runsimulation.
ParameterSetting
FlexibleSpacecraft.ParameterSetting.SimulationConfig — Typestruct SimulationConfigstruct that contains the information about the simulation configuration
fields
simulationtime::Real: time length of the simulationsamplingtime::Real: sampling time of the simulation
FlexibleSpacecraft.ParameterSetting.setdisturbance — Methodsetdisturbance(filepath::String)::DisturbanceConfigset disturbance configuration from YAML setting file
FlexibleSpacecraft.ParameterSetting.setdynamicsmodel — Methodsetdynamicsmodel(filepath::String)Load the YAML file configuration and construct the appropriate model for the simulation
FlexibleSpacecraft.ParameterSetting.setinitvalue — Methodsetinitvalue(filepath::String)::InitDataDefine the inital value for simulation
FlexibleSpacecraft.ParameterSetting.setorbit — Methodsetorbit(filepath::String, ECI::Frame)::OrbitInfoLoad the YAML file configuration and construct the appropriate model for the simulation
FlexibleSpacecraft.ParameterSetting.setsimconfig — Methodsetsimconfig(filepath::String)::SimulationConfiginitialize the simulation configurations
Return value
simconfig::SimulationConfig