コンテンツにスキップ

body_quat_to_rsw

このコンテンツはまだ日本語訳がありません。

Defined in: lib.rs:92

fn body_quat_to_rsw(pos: &nalgebra::Vector3<f64>, vel: &nalgebra::Vector3<f64>, q_body_eci: &nalgebra::UnitQuaternion<f64>) -> [Option<nalgebra::UnitQuaternion<f64>>](https://doc.rust-lang.org/std/option/enum.Option.html)

Transform a body-to-ECI quaternion into a body-to-RSW quaternion.

pos: satellite position in a simple Earth-centered inertial frame [km] vel: satellite velocity in the same frame [km/s] q_body_eci: body-to-ECI attitude quaternion

Returns body_to_rsw = rsw_to_eci⁻¹ * body_to_eci, or None if the RSW frame cannot be computed (degenerate orbit).