コンテンツにスキップ

ActuatorBundle

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

Defined in: actuators.rs:28

pub struct ActuatorBundle

Per-actuator applied command state.

fn new() -> Self

Create an empty bundle with no actuators armed.


fn apply(&mut self, cmd: &Command) -> [Result<(), PluginError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Apply a command, updating the corresponding actuator(s)’ state.

Rejects non-finite commands before they can poison downstream actuator models (NaN guard, see DESIGN.md Phase P 落とし穴リスト).

Only actuators for which the Command has Some fields are updated; other actuators retain their previous value (zero-order hold).


fn mtq_command(&self) -> [Option<&MtqCommand>](https://doc.rust-lang.org/std/option/enum.Option.html)

Returns the currently-commanded MTQ command, if any was ever applied.


fn has_mtq_command(&self) -> bool

Returns true if an MTQ command has been applied at least once.


fn rw_command(&self) -> [Option<&RwCommand>](https://doc.rust-lang.org/std/option/enum.Option.html)

Returns the currently-commanded RW command.


fn has_rw_command(&self) -> bool

Returns true if an RW command has been applied at least once.


fn thruster_command(&self) -> [Option<&ThrusterCommand>](https://doc.rust-lang.org/std/option/enum.Option.html)

Returns the currently-commanded thruster command.


fn has_thruster_command(&self) -> bool

Returns true if a thruster command has been applied at least once.