Skip to content

ThrusterAssemblyCore

Defined in: thruster.rs:274

pub struct ThrusterAssemblyCore

Geometry, 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.

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.


fn num_thrusters(&self) -> usize

Number of thrusters in the assembly.


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.