pub struct PidOutput {
pub control: f64,
pub error: f64,
}Fields§
§control: f64§error: f64Trait Implementations§
impl Copy for PidOutput
Source§impl StreamOperator<f64, PidOutput> for PidController
impl StreamOperator<f64, PidOutput> for PidController
Source§fn process(
&mut self,
data_in: &[f64],
) -> Result<Option<Vec<PidOutput>>, ErrorsJSL>
fn process( &mut self, data_in: &[f64], ) -> Result<Option<Vec<PidOutput>>, ErrorsJSL>
Processes a chunk of input data and produces a corresponding chunk of output data. The input and output types can be defined based on the specific requirements of the application, such as audio samples, video frames, or other types of data.
This method is called repeatedly as new data becomes available in the stream.
Source§fn flush(&mut self) -> Result<Option<Vec<PidOutput>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<PidOutput>>, ErrorsJSL>
Flushes any remaining data in the operator’s internal buffers and produces any final output data. This method is typically called at the end of a stream or when the operator needs to be shut down, allowing it to perform any necessary cleanup or final computations before the stream is terminated.
impl StructuralPartialEq for PidOutput
Auto Trait Implementations§
impl Freeze for PidOutput
impl RefUnwindSafe for PidOutput
impl Send for PidOutput
impl Sync for PidOutput
impl Unpin for PidOutput
impl UnsafeUnpin for PidOutput
impl UnwindSafe for PidOutput
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