Work in progress: Diverter calibration
This commit is contained in:
@@ -13,7 +13,9 @@ namespace TBF.BenchControl.Elde.Diverter
|
||||
///
|
||||
/// Serialized parameters
|
||||
///
|
||||
public int BitPosition;
|
||||
public int BitPosition; /// 0..63
|
||||
public int StartingEdge; /// 0..100 in %, threshold for the ADC value to start the test
|
||||
public int StoppingEdge; /// 0..100 in %, threshold for the ADC value to start the test
|
||||
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
DiverterCfg()
|
||||
@@ -21,7 +23,9 @@ namespace TBF.BenchControl.Elde.Diverter
|
||||
Name = "Div";
|
||||
ParentName = "CB";
|
||||
BitPosition = 0;
|
||||
}
|
||||
StartingEdge = 50;
|
||||
StoppingEdge = 50;
|
||||
}
|
||||
|
||||
public DiverterCfg(IComponentFactory factory)
|
||||
: this()
|
||||
@@ -31,10 +35,12 @@ namespace TBF.BenchControl.Elde.Diverter
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("Name={0}, Parent={1}, Bit={2}",
|
||||
return string.Format("Name={0}, Parent={1}, Bit={2}, StartEdge={3}%, StopEdge={4}%",
|
||||
Name,
|
||||
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
||||
BitPosition);
|
||||
BitPosition,
|
||||
StartingEdge,
|
||||
StoppingEdge);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user