Skip to content

Calculating covariance from CRA#72

Open
rwilliaise wants to merge 9 commits into
cram-sobelfrom
covariance
Open

Calculating covariance from CRA#72
rwilliaise wants to merge 9 commits into
cram-sobelfrom
covariance

Conversation

@rwilliaise

Copy link
Copy Markdown
Member

This adds a new function stage (SpheroidDistanceAndCovarianceDeterminationAlgorithm) that wraps around the SpheroidDistanceDeterminationAlgorithm to additionally calculate the covariance of the estimated position. Importantly this is not a DistanceDeterminationAlgorithm, instead returning a DistanceAndCovariance struct which contains both a estimate and it's covariance. This is a break from the pipeline model but is the best compromise for right now.

@rwilliaise rwilliaise added the Feature New Algorithm label Apr 29, 2026
@rwilliaise rwilliaise added this to the Distance Determination milestone Apr 29, 2026
Comment thread src/common/style.hpp
/// The output of a DistanceAndCovarianceDeterminationAlgorithm. Outputs a 3D
/// Vector and its associated covariance matrix that represents the satellite's
/// position.
struct DistanceAndCovariance {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this struct to PositionAndCovariance?

Comment thread src/distance/distance.cpp Outdated

decimal residualVariance = 4.0 * point.transpose() * transformedConicLocusMatrix *
pointCovariance * transformedConicLocusMatrix * point;
Mat3 jacobian = 2.0 * vecToEarth.transpose() *

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a Mat3

@nguy8tri

nguy8tri commented May 7, 2026

Copy link
Copy Markdown
Collaborator

If it is ready, this should be pushed into review

@rwilliaise

Copy link
Copy Markdown
Member Author

This hasn't been pushed for review seeing as there are no tests written yet, but we're not fully sure how this system would be tested or if this system should have unit testing.

@rwilliaise rwilliaise marked this pull request as ready for review May 20, 2026 04:23
@rwilliaise rwilliaise requested a review from BuilderBot72 May 20, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Algorithm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants