コンテンツにスキップ

DiscreteController

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

Defined in: control.rs:12

pub trait DiscreteController: [Send](https://doc.rust-lang.org/std/marker/trait.Send.html)

A discrete-time controller that runs at fixed sample intervals.

Controllers have internal state (&mut self) and produce commands that are held constant between sample times (zero-order hold).

fn sample_period(&self) -> f64

Sample period [s].


fn initial_command(&self) -> ::Command

Initial command before first update.


fn update(&mut self, t: f64, attitude: &AttitudeState, orbit: &OrbitalState, epoch: [Option<&Epoch>](https://doc.rust-lang.org/std/option/enum.Option.html)) -> ::Command

Compute new command from current observation.

Internal state (previous values, integrators, etc.) is updated.