Cartesian state's add_unchecked
does not set the frame correctly
#250
Labels
Milestone
add_unchecked
does not set the frame correctly
#250
Bug report
Describe the bug
As part of nyx-space/nyx#86, I'm testing the spacecraft trajectory conversions. In the
traj_spacecraft
test, I convert a spacecraft propagated in the EME2000 frame to the Moon frame and back again into the EME2000 frame. The returned value is obviously wrong indicating that the round-trip frame translation in Earth/Moon J2000 adds E-M vector.After some digging, it was quickly obvious that the add_unchecked function does not set the frame. Therefore, a round trip using
translate_to
ortransform_to
will be incorrect!To Reproduce
cargo test --release traj_spacecraft
Expected behavior
Round trip conversions should always work all the time.
Platform
Linux, Rust
The text was updated successfully, but these errors were encountered: