#[repr(C)]pub struct Command {
pub cycle: u32,
pub command: i32,
pub integral: i32,
pub derivative: i32,
pub clipped: bool,
pub integral_held: bool,
}Expand description
C-layout cycle-tagged command plus the observable PID state and clipping decisions.
Fields§
§cycle: u32Original input cycle, unchanged by arithmetic latency.
command: i32Saturated actuator command.
integral: i32PID integral state after this sample; zero for LQR.
derivative: i32PID derivative state after this sample; zero for LQR.
clipped: boolFinal unsaturated actuator value exceeded a configured limit.
integral_held: boolConditional integration refused a step that would worsen saturation.
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more