1.1 --- a/Hardware/TBalancer/TBalancer.cs Mon Apr 05 15:31:19 2010 +0000
1.2 +++ b/Hardware/TBalancer/TBalancer.cs Mon Apr 05 15:51:40 2010 +0000
1.3 @@ -76,22 +76,22 @@
1.4 };
1.5 int offset = 0;
1.6 for (int i = 0; i < digitalTemperatures.Length; i++)
1.7 - digitalTemperatures[i] = new Sensor("Digital Sensor #" + (i + 1),
1.8 + digitalTemperatures[i] = new Sensor("Digital Sensor " + i,
1.9 offset + i, null, SensorType.Temperature, this, parameter);
1.10 offset += digitalTemperatures.Length;
1.11
1.12 for (int i = 0; i < analogTemperatures.Length; i++)
1.13 - analogTemperatures[i] = new Sensor("Analog Sensor #" + (i + 1),
1.14 + analogTemperatures[i] = new Sensor("Analog Sensor " + (i + 1),
1.15 offset + i, null, SensorType.Temperature, this, parameter);
1.16 offset += analogTemperatures.Length;
1.17
1.18 for (int i = 0; i < sensorhubTemperatures.Length; i++)
1.19 - sensorhubTemperatures[i] = new Sensor("Sensorhub Sensor #" + (i + 1),
1.20 + sensorhubTemperatures[i] = new Sensor("Sensorhub Sensor " + i,
1.21 offset + i, null, SensorType.Temperature, this, parameter);
1.22 offset += sensorhubTemperatures.Length;
1.23
1.24 for (int i = 0; i < sensorhubFlows.Length; i++)
1.25 - sensorhubFlows[i] = new Sensor("Flowmeter #" + (i + 1),
1.26 + sensorhubFlows[i] = new Sensor("Flowmeter " + (i + 1),
1.27 offset + i, null, SensorType.Flow, this, new ParameterDescription[] {
1.28 new ParameterDescription("Impulse Rate",
1.29 "The impulse rate of the flowmeter in pulses/L", 509)
1.30 @@ -100,7 +100,7 @@
1.31
1.32 for (int i = 0; i < miniNGTemperatures.Length; i++)
1.33 miniNGTemperatures[i] = new Sensor("miniNG #" + (i / 2 + 1) +
1.34 - " Sensor #" + (i % 2 + 1), offset + i, null, SensorType.Temperature,
1.35 + " Sensor " + (i % 2 + 1), offset + i, null, SensorType.Temperature,
1.36 this, parameter);
1.37 offset += miniNGTemperatures.Length;
1.38
1.39 @@ -152,7 +152,7 @@
1.40
1.41 if (miniNGFans[number * 2 + i] == null)
1.42 miniNGFans[number * 2 + i] =
1.43 - new Sensor("miniNG #" + (number + 1) + " Fan #" + (i + 1),
1.44 + new Sensor("miniNG #" + (number + 1) + " Fan Channel " + (i + 1),
1.45 4 + number * 2 + i, maxRPM, SensorType.Fan, this);
1.46
1.47 Sensor sensor = miniNGFans[number * 2 + i];
1.48 @@ -220,7 +220,7 @@
1.49 float maxRPM = 11.5f * ((data[149 + 2 * i] << 8) | data[148 + 2 * i]);
1.50
1.51 if (fans[i] == null)
1.52 - fans[i] = new Sensor("Fan #" + (i + 1), i, maxRPM, SensorType.Fan,
1.53 + fans[i] = new Sensor("Fan Channel " + i, i, maxRPM, SensorType.Fan,
1.54 this, new ParameterDescription[] {
1.55 new ParameterDescription("MaxRPM",
1.56 "Maximum revolutions per minute (RPM) of the fan.", maxRPM)