From c23e72b8b4eec5fe4b6ee77bc997980fcb356846 Mon Sep 17 00:00:00 2001 From: Roy Date: Sun, 13 Nov 2022 10:36:11 +0200 Subject: PPC "Use Flat Spool" + SpoolType logic improvements. Added RML->SpoolType calibration new parameters. --- .../Visual_Studio/Tango.BL/DTO/RmlsSpoolDTOBase.cs | 16 +++++ .../Tango.BL/Entities/RmlsSpoolBase.cs | 76 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) (limited to 'Software/Visual_Studio/Tango.BL') 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 @@ -69,6 +69,22 @@ namespace Tango.BL.DTO get; set; } + /// + /// start offset pulses + /// + public Nullable StartOffsetPulses + { + get; set; + } + + /// + /// segment offset pulses + /// + public Nullable SegmentOffsetPulses + { + get; set; + } + /// /// btsr spool tension /// 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> BottomBackingRateChanged; + public event EventHandler> StartOffsetPulsesChanged; + + public event EventHandler> SegmentOffsetPulsesChanged; + public event EventHandler> BtsrSpoolTensionChanged; public event EventHandler RmlChanged; @@ -201,6 +205,60 @@ namespace Tango.BL.Entities } } + protected Nullable _startoffsetpulses; + + /// + /// Gets or sets the rmlsspoolbase start offset pulses. + /// + + [Column("START_OFFSET_PULSES")] + + public Nullable StartOffsetPulses + { + get + { + return _startoffsetpulses; + } + + set + { + if (_startoffsetpulses != value) + { + _startoffsetpulses = value; + + OnStartOffsetPulsesChanged(value); + + } + } + } + + protected Nullable _segmentoffsetpulses; + + /// + /// Gets or sets the rmlsspoolbase segment offset pulses. + /// + + [Column("SEGMENT_OFFSET_PULSES")] + + public Nullable SegmentOffsetPulses + { + get + { + return _segmentoffsetpulses; + } + + set + { + if (_segmentoffsetpulses != value) + { + _segmentoffsetpulses = value; + + OnSegmentOffsetPulsesChanged(value); + + } + } + } + protected Nullable _btsrspooltension; /// @@ -328,6 +386,24 @@ namespace Tango.BL.Entities RaisePropertyChanged(nameof(BottomBackingRate)); } + /// + /// Called when the StartOffsetPulses has changed. + /// + protected virtual void OnStartOffsetPulsesChanged(Nullable startoffsetpulses) + { + StartOffsetPulsesChanged?.Invoke(this, startoffsetpulses); + RaisePropertyChanged(nameof(StartOffsetPulses)); + } + + /// + /// Called when the SegmentOffsetPulses has changed. + /// + protected virtual void OnSegmentOffsetPulsesChanged(Nullable segmentoffsetpulses) + { + SegmentOffsetPulsesChanged?.Invoke(this, segmentoffsetpulses); + RaisePropertyChanged(nameof(SegmentOffsetPulses)); + } + /// /// Called when the BtsrSpoolTension has changed. /// -- cgit v1.3.1