Skip to main content

pamoja_controller_surge

Function pamoja_controller_surge 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_controller_surge( rising: bool, limit: f32, ) -> *mut PamojaController
Expand description

Creates a controller that warns when a reading changes too fast.

§Arguments

  • rising - watch a rapid rise rather than a rapid fall.
  • limit - the largest safe change per sample.

§Returns

A handle the caller must release with pamoja_controller_free.