Skip to main content

Class LinearHallEffectTachometer

Represents a Lineal Hall Effect tachometer.

Assembly: Meadow.Foundation.dll
View Source
Declaration
public class LinearHallEffectTachometer : IDisposable

Implements:
System.IDisposable

Properties

RPMChangeNotificationThreshold

Any changes to the RPMs that are greater than the RPM change threshold will cause an event to be raised when the instance is set to update automatically.

View Source
Declaration
public float RPMChangeNotificationThreshold { get; set; }

InputPort

Input port for the tachometer

View Source
Declaration
protected IDigitalInterruptPort InputPort { get; set; }

NumberOfMagnets

Returns number of magnets of the sensor.

View Source
Declaration
public ushort NumberOfMagnets { get; }

RPMs

Returns number of revolutions per minute.

View Source
Declaration
public int RPMs { get; }

IsDisposed

Is the object disposed

View Source
Declaration
public bool IsDisposed { get; }

Fields

rpms

Revolutions per minute

View Source
Declaration
protected float rpms

lastNotifiedRPMs

Last notified RPM value

View Source
Declaration
protected float lastNotifiedRPMs

revolutionTimeStart

Revolution start time

View Source
Declaration
protected DateTime revolutionTimeStart

numberOfReads

Number of reads

View Source
Declaration
protected ushort numberOfReads

Methods

OnRaiseRPMChanged()

Notify when RPMs change

View Source
Declaration
protected void OnRaiseRPMChanged()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source
Declaration
public void Dispose()

Dispose(bool)

Dispose of the object

View Source
Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingIs disposing

Events

RPMsChanged

Event raised when the RPM change is greater than the RPMChangeNotificationThreshold value.

View Source
Declaration
public event EventHandler<ChangeResult<float>> RPMsChanged
Event Type

System.EventHandler<Meadow.ChangeResult<System.Single>>

Implements

  • System.IDisposable