ActuatorBundle
このコンテンツはまだ日本語訳がありません。
Defined in: actuators.rs:29
pub struct ActuatorBundlePer-actuator applied command state.
Methods
Section titled “Methods”fn new() -> Self
Create an empty bundle with no actuators armed.
apply()
Section titled “apply()”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).
mtq_moments()
Section titled “mtq_moments()”fn mtq_moments(&self) -> &[f64]
Returns the currently-commanded per-MTQ moments, if any was ever applied. Returns empty slice when no command has been observed yet.
has_mtq_command()
Section titled “has_mtq_command()”fn has_mtq_command(&self) -> bool
Returns true if an MTQ command has been applied at least once.
rw_command()
Section titled “rw_command()”fn rw_command(&self) -> [Option<&RwCommand>](https://doc.rust-lang.org/std/option/enum.Option.html)
Returns the currently-commanded RW command.
has_rw_command()
Section titled “has_rw_command()”fn has_rw_command(&self) -> bool
Returns true if an RW command has been applied at least once.