The T-Balancer flow-meter time window seems to be scaled with a factor 4. Added the correction factor to get correct results.
authormoel.mich
Sun, 28 Feb 2010 16:12:55 +0000
changeset 662b537d442924
parent 65 d94a9b712b64
child 67 bb5696abab23
The T-Balancer flow-meter time window seems to be scaled with a factor 4. Added the correction factor to get correct results.
Hardware/TBalancer/TBalancer.cs
Properties/AssemblyInfo.cs
     1.1 --- a/Hardware/TBalancer/TBalancer.cs	Sat Feb 27 20:26:05 2010 +0000
     1.2 +++ b/Hardware/TBalancer/TBalancer.cs	Sun Feb 28 16:12:55 2010 +0000
     1.3 @@ -214,7 +214,7 @@
     1.4  
     1.5          for (int i = 0; i < sensorhubFlows.Length; i++)
     1.6            if (data[231 + i] > 0 && data[234] > 0) {
     1.7 -            float pulsesPerSecond = ((float)data[231 + i]) / data[234];
     1.8 +            float pulsesPerSecond = (data[231 + i] * 4.0f) / data[234];
     1.9              float pulsesPerLiter = sensorhubFlows[i].Parameters[0].Value;
    1.10              sensorhubFlows[i].Value = pulsesPerSecond * 3600 / pulsesPerLiter;
    1.11              ActivateSensor(sensorhubFlows[i]);
     2.1 --- a/Properties/AssemblyInfo.cs	Sat Feb 27 20:26:05 2010 +0000
     2.2 +++ b/Properties/AssemblyInfo.cs	Sun Feb 28 16:12:55 2010 +0000
     2.3 @@ -69,5 +69,5 @@
     2.4  // You can specify all the values or you can default the Build and Revision Numbers 
     2.5  // by using the '*' as shown below:
     2.6  // [assembly: AssemblyVersion("1.0.*")]
     2.7 -[assembly: AssemblyVersion("0.1.24.0")]
     2.8 -[assembly: AssemblyFileVersion("0.1.24.0")]
     2.9 +[assembly: AssemblyVersion("0.1.24.1")]
    2.10 +[assembly: AssemblyFileVersion("0.1.24.1")]