pub struct TipController { /* private fields */ }Expand description
Enhanced tip controller with pulse voltage stepping
Implementations§
Source§impl TipController
impl TipController
Sourcepub fn new(driver: ActionDriver, config: TipControllerConfig) -> Self
pub fn new(driver: ActionDriver, config: TipControllerConfig) -> Self
Create new tip controller with basic signal bounds
Sourcepub fn set_state_sender(&mut self, sender: Sender<ControllerState>)
pub fn set_state_sender(&mut self, sender: Sender<ControllerState>)
Set a channel to send state updates to (for GUI)
Sourcepub fn snapshot(&self) -> ControllerState
pub fn snapshot(&self) -> ControllerState
Get current controller state snapshot
Sourcepub fn set_shutdown_flag(&mut self, flag: Arc<AtomicBool>)
pub fn set_shutdown_flag(&mut self, flag: Arc<AtomicBool>)
Set shutdown flag for graceful termination
Sourcepub fn track_signal(&mut self, signal: &Signal, value: f32)
pub fn track_signal(&mut self, signal: &Signal, value: f32)
Track a signal value in history
Sourcepub fn get_signal_change(&self, signal: &Signal) -> Option<f32>
pub fn get_signal_change(&self, signal: &Signal) -> Option<f32>
Get signal change (latest - previous) for a specific signal
Sourcepub fn get_signal_history(&self, signal: &Signal) -> Option<&VecDeque<f32>>
pub fn get_signal_history(&self, signal: &Signal) -> Option<&VecDeque<f32>>
Get signal history for a specific signal (most recent first)
pub fn get_last_signal(&self, signal: &Signal) -> Option<f32>
Sourcepub fn clear_all_histories(&mut self)
pub fn clear_all_histories(&mut self)
Clear all signal histories
Sourcepub fn clear_signal_history(&mut self, signal: &Signal)
pub fn clear_signal_history(&mut self, signal: &Signal)
Clear history for a specific signal
Source§impl TipController
impl TipController
Sourcepub fn run(&mut self) -> Result<RunOutcome, Error>
pub fn run(&mut self) -> Result<RunOutcome, Error>
Main control loop - returns RunOutcome on success, Error on failure. Shutdown is treated as a successful outcome (StoppedByUser), not an error.
Auto Trait Implementations§
impl Freeze for TipController
impl !RefUnwindSafe for TipController
impl Send for TipController
impl Sync for TipController
impl Unpin for TipController
impl UnsafeUnpin for TipController
impl !UnwindSafe for TipController
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