Filters to support SNC in other frames
Requires: #141 (closed)
This feature will allow a user to define the SNC in a frame which makes sense (e.g. the uncertainty is mostly in the X direction as seen from the point of view of the ground station).
This will require a new structure and a new trait which allows retrieval of a frame
.
Off the top of my head:
pub struct SNC<'a, S: DimName> {
snc: MatrixN<f64, S>,
frame: Frame,
cosm: &'a Cosm
}
impl<'a, S:DimName> SNC<'a, S> {
pub fn as_seen_from(&self, other_frame: Frame) -> MatrixN<f64, S> {
if self.frame == other_frame {
self.snc
} else {
let dcm = self.cosm.try_dcm...
&dcm * &self.snc * &dcm.transpose()
}
}
}
Edited by Christopher Rabotin