Class LinearHallEffectTachometer
Represents a Lineal Hall Effect tachometer.
Assembly: Meadow.Foundation.dll
View Source
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
public float RPMChangeNotificationThreshold { get; set; }
InputPort
Input port for the tachometer
View Source
protected IDigitalInterruptPort InputPort { get; set; }
NumberOfMagnets
Returns number of magnets of the sensor.
View Source
public ushort NumberOfMagnets { get; }
RPMs
Returns number of revolutions per minute.
View Source
public int RPMs { get; }
IsDisposed
Is the object disposed
View Source
public bool IsDisposed { get; }
Fields
rpms
Revolutions per minute
View Source
protected float rpms
lastNotifiedRPMs
Last notified RPM value
View Source
protected float lastNotifiedRPMs
revolutionTimeStart
Revolution start time
View Source
protected DateTime revolutionTimeStart
numberOfReads
Number of reads
View Source
protected ushort numberOfReads
Methods
OnRaiseRPMChanged()
Notify when RPMs change
View Source
protected void OnRaiseRPMChanged()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
Dispose(bool)
Dispose of the object
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Is disposing |
Events
RPMsChanged
Event raised when the RPM change is greater than the RPMChangeNotificationThreshold value.
View Source
public event EventHandler<ChangeResult<float>> RPMsChanged
Event Type
System.EventHandler<Meadow.ChangeResult<System.Single>>
Implements
System.IDisposable