[−][src]Trait nyx_space::dynamics::thrustctrl::ThrustControl
The ThrustControl
trait handles control laws, optimizations, and other such methods for
controlling the overall thrust direction when tied to a Spacecraft
. For delta V control,
tie the DeltaVctrl to a MissionArc.
Required methods
fn direction(&self, state: &State) -> Vector3<f64>
Returns a unit vector corresponding to the thrust direction in the inertial frame.
fn throttle(&self, state: &State) -> f64
Returns a number between [0;1] corresponding to the engine throttle level. For example, 0 means coasting, i.e. no thrusting, and 1 means maximum thrusting.
fn next(&mut self, state: &State)
Prepares the controller for the next maneuver (called from set_state of the dynamics).