Class Duet3DFilamentMonitor
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Base class for Duet3D filament monitors
public class Duet3DFilamentMonitor : FilamentMonitor, INotifyPropertyChanging, IDynamicModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Duet3DFilamentMonitor
- Implements
- Derived
- Inherited Members
Constructors
Duet3DFilamentMonitor()
public Duet3DFilamentMonitor()
Properties
AvgPercentage
Average ratio of measured vs. commanded movement
public int? AvgPercentage { get; set; }
Property Value
- int?
LastPercentage
Last ratio of measured vs. commanded movement
public int? LastPercentage { get; set; }
Property Value
- int?
MaxPercentage
Maximum ratio of measured vs. commanded movement
public int? MaxPercentage { get; set; }
Property Value
- int?
MinPercentage
Minimum ratio of measured vs. commanded movement
public int? MinPercentage { get; set; }
Property Value
- int?
Position
Reported sensor position of this filament monitor. The maximum value depends on the type of the sensor, e.g. 0..1023 for a Duet3D MFM.
public int Position { get; set; }
Property Value
TotalExtrusion
Total extrusion commanded (in mm)
public float TotalExtrusion { get; set; }
Property Value
Methods
Assign(IDynamicModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public override IDynamicModelObject? Assign(IDynamicModelObject from)
Parameters
fromIDynamicModelObjectOther instance
Returns
- IDynamicModelObject
Updated instance
Clone()
Clone this instance
public override object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
GeneratedUpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public override IDynamicModelObject? GeneratedUpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Returns
- IDynamicModelObject
Updated instance
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
GeneratedUpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public override IDynamicModelObject? GeneratedUpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Returns
- IDynamicModelObject
Updated instance
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data