NULL
This commit is contained in:
23
user/Compute/PipeFlowRate.c
Executable file
23
user/Compute/PipeFlowRate.c
Executable file
@@ -0,0 +1,23 @@
|
||||
#include "../main/SystemInclude.h"
|
||||
|
||||
unsigned short calibDiameter, workDiameter;
|
||||
|
||||
//******************************************************************************
|
||||
unsigned long int CorrectTubeFlowrate(unsigned long int correctFlowRate)
|
||||
{
|
||||
float tempF;
|
||||
|
||||
tempF = (float)workDiameter;
|
||||
tempF /= (float)calibDiameter;
|
||||
tempF *= tempF;
|
||||
tempF *= correctFlowRate;
|
||||
|
||||
return (unsigned long int)tempF;
|
||||
}
|
||||
|
||||
//******************************************************************************
|
||||
void PipeFlowRateComputeInit(void)
|
||||
{
|
||||
calibDiameter = ReadShortParameterFromEEPROM(CALIB_DIAMETER, CALIB_DIAMETER_WIDTH, CALIB_DIAMETER_DEFAULT);
|
||||
workDiameter = ReadShortParameterFromEEPROM(WORK_DIAMETER, WORK_DIAMETER_WIDTH, CALIB_DIAMETER_DEFAULT);
|
||||
}
|
||||
Reference in New Issue
Block a user