public void Start(VoltageTriggerCallback callback) { if (DistanceSampler == null) { VoltageTriggerProcedure = callback; DistanceSamplerStop = false; DistanceSampler = new Thread(DistanceSampling); DistanceSampler.Start(); } }
public void Dispose() { Stop(); DistanceSensors = null; VoltageTriggerProcedure = null; }