#[unsafe(no_mangle)]pub extern "C" fn pamoja_sim_sensor_new(
baseline: f32,
drift_per_read: f32,
noise: f32,
seed: u32,
) -> *mut PamojaSimSensorExpand description
Creates a sensor that reads around a baseline.
§Arguments
baseline- the value it reads before drift and noise.drift_per_read- how much the baseline moves each read, or 0 for none.noise- the amplitude of the wobble around it, or 0 for none.seed- the seed for that wobble, so a run repeats.
§Returns
A handle the caller must release with pamoja_sim_sensor_free.