aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-11-13 10:36:11 +0200
committerRoy <Roy.mail.net@gmail.com>2022-11-13 10:36:11 +0200
commitc23e72b8b4eec5fe4b6ee77bc997980fcb356846 (patch)
treedf2cec52a6cd0d786432eefaf2857c1207cb7b73 /Software/Visual_Studio/Tango.BL
parentc14680622d66176dbc90f02dbed5629297f58bb9 (diff)
downloadTango-c23e72b8b4eec5fe4b6ee77bc997980fcb356846.tar.gz
Tango-c23e72b8b4eec5fe4b6ee77bc997980fcb356846.zip
PPC "Use Flat Spool" + SpoolType logic improvements.
Added RML->SpoolType calibration new parameters.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL')
-rw-r--r--Software/Visual_Studio/Tango.BL/DTO/RmlsSpoolDTOBase.cs16
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/RmlsSpoolBase.cs76
2 files changed, 92 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/DTO/RmlsSpoolDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/RmlsSpoolDTOBase.cs
index c17e2b426..d140c1435 100644
--- a/Software/Visual_Studio/Tango.BL/DTO/RmlsSpoolDTOBase.cs
+++ b/Software/Visual_Studio/Tango.BL/DTO/RmlsSpoolDTOBase.cs
@@ -70,6 +70,22 @@ namespace Tango.BL.DTO
}
/// <summary>
+ /// start offset pulses
+ /// </summary>
+ public Nullable<Int32> StartOffsetPulses
+ {
+ get; set;
+ }
+
+ /// <summary>
+ /// segment offset pulses
+ /// </summary>
+ public Nullable<Int32> SegmentOffsetPulses
+ {
+ get; set;
+ }
+
+ /// <summary>
/// btsr spool tension
/// </summary>
public Nullable<Int32> BtsrSpoolTension
diff --git a/Software/Visual_Studio/Tango.BL/Entities/RmlsSpoolBase.cs b/Software/Visual_Studio/Tango.BL/Entities/RmlsSpoolBase.cs
index 0edd11cfd..a6ae877be 100644
--- a/Software/Visual_Studio/Tango.BL/Entities/RmlsSpoolBase.cs
+++ b/Software/Visual_Studio/Tango.BL/Entities/RmlsSpoolBase.cs
@@ -35,6 +35,10 @@ namespace Tango.BL.Entities
public event EventHandler<Nullable<Int32>> BottomBackingRateChanged;
+ public event EventHandler<Nullable<Int32>> StartOffsetPulsesChanged;
+
+ public event EventHandler<Nullable<Int32>> SegmentOffsetPulsesChanged;
+
public event EventHandler<Nullable<Int32>> BtsrSpoolTensionChanged;
public event EventHandler<Rml> RmlChanged;
@@ -201,6 +205,60 @@ namespace Tango.BL.Entities
}
}
+ protected Nullable<Int32> _startoffsetpulses;
+
+ /// <summary>
+ /// Gets or sets the rmlsspoolbase start offset pulses.
+ /// </summary>
+
+ [Column("START_OFFSET_PULSES")]
+
+ public Nullable<Int32> StartOffsetPulses
+ {
+ get
+ {
+ return _startoffsetpulses;
+ }
+
+ set
+ {
+ if (_startoffsetpulses != value)
+ {
+ _startoffsetpulses = value;
+
+ OnStartOffsetPulsesChanged(value);
+
+ }
+ }
+ }
+
+ protected Nullable<Int32> _segmentoffsetpulses;
+
+ /// <summary>
+ /// Gets or sets the rmlsspoolbase segment offset pulses.
+ /// </summary>
+
+ [Column("SEGMENT_OFFSET_PULSES")]
+
+ public Nullable<Int32> SegmentOffsetPulses
+ {
+ get
+ {
+ return _segmentoffsetpulses;
+ }
+
+ set
+ {
+ if (_segmentoffsetpulses != value)
+ {
+ _segmentoffsetpulses = value;
+
+ OnSegmentOffsetPulsesChanged(value);
+
+ }
+ }
+ }
+
protected Nullable<Int32> _btsrspooltension;
/// <summary>
@@ -329,6 +387,24 @@ namespace Tango.BL.Entities
}
/// <summary>
+ /// Called when the StartOffsetPulses has changed.
+ /// </summary>
+ protected virtual void OnStartOffsetPulsesChanged(Nullable<Int32> startoffsetpulses)
+ {
+ StartOffsetPulsesChanged?.Invoke(this, startoffsetpulses);
+ RaisePropertyChanged(nameof(StartOffsetPulses));
+ }
+
+ /// <summary>
+ /// Called when the SegmentOffsetPulses has changed.
+ /// </summary>
+ protected virtual void OnSegmentOffsetPulsesChanged(Nullable<Int32> segmentoffsetpulses)
+ {
+ SegmentOffsetPulsesChanged?.Invoke(this, segmentoffsetpulses);
+ RaisePropertyChanged(nameof(SegmentOffsetPulses));
+ }
+
+ /// <summary>
/// Called when the BtsrSpoolTension has changed.
/// </summary>
protected virtual void OnBtsrSpoolTensionChanged(Nullable<Int32> btsrspooltension)