ThrusterAssemblyCore
Defined in: thruster.rs:274
pub struct ThrusterAssemblyCoreGeometry, constraint, and load-aggregation logic for a group of thrusters.
Testable independently of the ODE integration. The wrapper
ThrusterAssembly adds the commanded state and implements Model.
Methods
Section titled “Methods”fn new(specs: [Vec<ThrusterSpec>](https://doc.rust-lang.org/std/vec/struct.Vec.html), dry_mass: f64) -> Self
Create an assembly from a list of thruster specs and a common dry mass.
num_thrusters()
Section titled “num_thrusters()”fn num_thrusters(&self) -> usize
Number of thrusters in the assembly.
loads()
Section titled “loads()”fn loads(&self, throttles: &[f64], state: &SpacecraftState, epoch: [Option<&Epoch>](https://doc.rust-lang.org/std/option/enum.Option.html)) -> ExternalLoads
Compute aggregate loads from per-thruster throttle values.
Each throttle is clamped to [0, 1]. Returns zero loads when
state.mass ≤ dry_mass or when throttles length does not match
the number of thrusters.