# HG changeset patch # User moel.mich # Date 1267373575 0 # Node ID 2b537d442924ceacb05ca78c634f9bc2ffa5cacb # Parent d94a9b712b643cc5f6f3f68d46f5f2484818a154 The T-Balancer flow-meter time window seems to be scaled with a factor 4. Added the correction factor to get correct results. diff -r d94a9b712b64 -r 2b537d442924 Hardware/TBalancer/TBalancer.cs --- a/Hardware/TBalancer/TBalancer.cs Sat Feb 27 20:26:05 2010 +0000 +++ b/Hardware/TBalancer/TBalancer.cs Sun Feb 28 16:12:55 2010 +0000 @@ -214,7 +214,7 @@ for (int i = 0; i < sensorhubFlows.Length; i++) if (data[231 + i] > 0 && data[234] > 0) { - float pulsesPerSecond = ((float)data[231 + i]) / data[234]; + float pulsesPerSecond = (data[231 + i] * 4.0f) / data[234]; float pulsesPerLiter = sensorhubFlows[i].Parameters[0].Value; sensorhubFlows[i].Value = pulsesPerSecond * 3600 / pulsesPerLiter; ActivateSensor(sensorhubFlows[i]); diff -r d94a9b712b64 -r 2b537d442924 Properties/AssemblyInfo.cs --- a/Properties/AssemblyInfo.cs Sat Feb 27 20:26:05 2010 +0000 +++ b/Properties/AssemblyInfo.cs Sun Feb 28 16:12:55 2010 +0000 @@ -69,5 +69,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.24.0")] -[assembly: AssemblyFileVersion("0.1.24.0")] +[assembly: AssemblyVersion("0.1.24.1")] +[assembly: AssemblyFileVersion("0.1.24.1")]