Everything works OK after serious changes:
- all components, componentCfg-s and parameter providers use base classes - less boilerplate code, simpler access to test/procedure parameters from code - CreateTestParams(test), CreateProcedureParams(procedure) methods added - TestBenchSim class is made static, it is not inheritted by any device anymore
This commit is contained in:
@@ -11,8 +11,8 @@ namespace TBF.BenchControl.Cameras.IdcCamera
|
||||
public int BaudRate; /// Baud rate 57600 or 115200
|
||||
public float BrightnessCam; /// Relative brightness 0 .. 1.0f
|
||||
|
||||
/// Parameterless constructor
|
||||
public IdcCameraCfg()
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
IdcCameraCfg()
|
||||
{
|
||||
Name = "Idc";
|
||||
ParentName = string.Empty;
|
||||
@@ -29,7 +29,11 @@ namespace TBF.BenchControl.Cameras.IdcCamera
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("COM{0}, {1}Bd, brightness={2}%", ComPortNr, BaudRate, (int)(100.0f * BrightnessCam));
|
||||
return string.Format("Name={0}, Com{1}, {2}Bd, brght={3}%",
|
||||
Name,
|
||||
ComPortNr,
|
||||
BaudRate,
|
||||
(int)(100.0f * BrightnessCam));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user