Hardware/TBalancer/TBalancer.cs
changeset 134 8b3b9b2e28e5
parent 122 3ef997c53b50
child 137 9ed52fa44ecf
     1.1 --- a/Hardware/TBalancer/TBalancer.cs	Sat Jun 05 18:59:54 2010 +0000
     1.2 +++ b/Hardware/TBalancer/TBalancer.cs	Sun Jun 06 11:07:57 2010 +0000
     1.3 @@ -78,34 +78,34 @@
     1.4        int offset = 0;
     1.5        for (int i = 0; i < digitalTemperatures.Length; i++)
     1.6          digitalTemperatures[i] = new Sensor("Digital Sensor " + i,
     1.7 -          offset + i, null, SensorType.Temperature, this, parameter);
     1.8 +          offset + i, SensorType.Temperature, this, parameter);
     1.9        offset += digitalTemperatures.Length;
    1.10  
    1.11        for (int i = 0; i < analogTemperatures.Length; i++)
    1.12          analogTemperatures[i] = new Sensor("Analog Sensor " + (i + 1),
    1.13 -          offset + i, null, SensorType.Temperature, this, parameter);
    1.14 +          offset + i, SensorType.Temperature, this, parameter);
    1.15        offset += analogTemperatures.Length;
    1.16  
    1.17        for (int i = 0; i < sensorhubTemperatures.Length; i++)
    1.18          sensorhubTemperatures[i] = new Sensor("Sensorhub Sensor " + i,
    1.19 -          offset + i, null, SensorType.Temperature, this, parameter);
    1.20 +          offset + i, SensorType.Temperature, this, parameter);
    1.21        offset += sensorhubTemperatures.Length;
    1.22  
    1.23        for (int i = 0; i < miniNGTemperatures.Length; i++)
    1.24          miniNGTemperatures[i] = new Sensor("miniNG #" + (i / 2 + 1) +
    1.25 -          " Sensor " + (i % 2 + 1), offset + i, null, SensorType.Temperature, 
    1.26 +          " Sensor " + (i % 2 + 1), offset + i, SensorType.Temperature, 
    1.27            this, parameter);
    1.28        offset += miniNGTemperatures.Length;
    1.29  
    1.30        for (int i = 0; i < sensorhubFlows.Length; i++)
    1.31          sensorhubFlows[i] = new Sensor("Flowmeter " + (i + 1),
    1.32 -          i, null, SensorType.Flow, this, new ParameterDescription[] {
    1.33 +          i, SensorType.Flow, this, new ParameterDescription[] {
    1.34              new ParameterDescription("Impulse Rate", 
    1.35                "The impulse rate of the flowmeter in pulses/L", 509)
    1.36            });
    1.37  
    1.38        for (int i = 0; i < controls.Length; i++) {
    1.39 -        controls[i] = new Sensor("Fan Channel " + i, i, null, 
    1.40 +        controls[i] = new Sensor("Fan Channel " + i, i, 
    1.41            SensorType.Control, this, null);
    1.42          ActivateSensor(controls[i]);
    1.43        }
    1.44 @@ -159,7 +159,7 @@
    1.45          if (miniNGFans[number * 2 + i] == null)
    1.46            miniNGFans[number * 2 + i] = 
    1.47              new Sensor("miniNG #" + (number + 1) + " Fan Channel " + (i + 1),
    1.48 -            4 + number * 2 + i, maxRPM, SensorType.Fan, this, null);
    1.49 +            4 + number * 2 + i, SensorType.Fan, this, null);
    1.50          
    1.51          Sensor sensor = miniNGFans[number * 2 + i];
    1.52  
    1.53 @@ -226,7 +226,7 @@
    1.54            float maxRPM = 11.5f * ((data[149 + 2 * i] << 8) | data[148 + 2 * i]);
    1.55  
    1.56            if (fans[i] == null)
    1.57 -            fans[i] = new Sensor("Fan Channel " + i, i, maxRPM, SensorType.Fan,
    1.58 +            fans[i] = new Sensor("Fan Channel " + i, i, SensorType.Fan,
    1.59                this, new ParameterDescription[] {
    1.60                  new ParameterDescription("MaxRPM", 
    1.61                    "Maximum revolutions per minute (RPM) of the fan.", maxRPM)