Skip to content

[feat] Profile static contructor to combine multiple profiles + intervals into a single profile #477

@vishwa2710

Description

@vishwa2710

Is your feature request related to a problem? Please describe.
It would be great if we can take a list of Profiles + intervals that they are valid over, and output a single Profile that is valid over the combined intervals. For gaps in the provided intervals, a default attitude profile must be provided.

Describe the solution you'd like

Profile Profile::Combine(const Orbit& anOrbit, const Array<const Pair<const Interval, const Profile>>& aProfileIntervalArray, const std::function<Quaternion(const State&)>& anOrientationGenerator, const Interval& anInterval, const Duration& aDurationStep)

or

Profile Profile::Combine(const Profile& aDefaultProfile, const Array<const Pair<const Interval, const Profile>>& aProfileIntervalArray, const Interval& anInterval, const Duration& aDurationStep)

Under the hood, it sorts the intervals and creates states from the relevant profile or default profile, and then returns a Profile with a tabulated model which is valid over the provided interval, with states at the provided duration step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions