FixedStartMassCollection modified, ControlBoard.Elde repmoved, ver. 3.1.1624

This commit is contained in:
Milan Hanajik
2021-04-16 14:06:47 +02:00
parent 95d5d16c83
commit 847956f708
46 changed files with 113 additions and 3688 deletions
@@ -1,5 +1,5 @@
///
/// Copyright (c) 2018 Sensus Slovensko a.s.
/// Copyright (c) 2018-2021 Sensus Slovensko a.s.
///
using System;
using System.Collections.Generic;
@@ -15,7 +15,7 @@ namespace TBF.Rig.RegisterReaders.KPackE.RegisterReader
readonly RRCfg registerReaderCfg;
readonly Radio.Radio radio;
readonly TBF.Rig.ControlBoard.Legacy.CBoard controlBoard;
readonly TBF.Rig.ControlBoard.Uni.UniCB uniCB;
public int Position
@@ -87,8 +87,8 @@ namespace TBF.Rig.RegisterReaders.KPackE.RegisterReader
radio = (Radio.Radio)TbfComponents.FindComponent(cfg.ParentName, components);
if (radio == null) throw new Exception(string.Format("Cannot find a parent of {0}", Name));
controlBoard = StateMachine.ControlBoard as TBF.Rig.ControlBoard.Legacy.CBoard;
if (controlBoard == null) throw new Exception("Missing ELDE control board");
uniCB = StateMachine.ControlBoard as TBF.Rig.ControlBoard.Uni.UniCB;
if (uniCB == null) throw new Exception("Missing ELDE control board");
log.Warn(this.ToString());
}
@@ -118,7 +118,7 @@ namespace TBF.Rig.RegisterReaders.KPackE.RegisterReader
private void ReadPulses()
{
wmRefPulses = (controlBoard != null) ? controlBoard.RefPulses : 0;
wmRefPulses = (uniCB != null) ? uniCB.RefPulses : 0;
}
/// <summary>Start this operation</summary>