X-Git-Url: https://git.ucc.asn.au/?p=matches%2FMCTX3420.git;a=blobdiff_plain;f=server%2Fsensors%2Fdilatometer.c;h=18d5e686cf60b5c36f358584f0335d05ecfb8724;hp=10b2e61a7247c7090cc03db08b8e1629bad7cd43;hb=f316d3b0234badc48d97ef3fcc607f7eddcb9a62;hpb=69d9f5d6774384f76c75248907304b0fbd66bbd1 diff --git a/server/sensors/dilatometer.c b/server/sensors/dilatometer.c index 10b2e61..18d5e68 100644 --- a/server/sensors/dilatometer.c +++ b/server/sensors/dilatometer.c @@ -165,7 +165,7 @@ void CannyThreshold() * @param samples - Number of rows to scan (increasing will slow down performance!) * @returns true on successful read */ -bool Dilatometer_GetEdge( double * value, int samples) +bool Dilatometer_GetExpansion( double * value, int samples) { bool result = false; double average = 0; @@ -244,7 +244,7 @@ bool Dilatometer_GetEdge( double * value, int samples) */ bool Dilatometer_Read(int id, double * value) { - bool result = Dilatometer_GetEdge(value, SAMPLES); + bool result = Dilatometer_GetExpansion(value, SAMPLES); return result; } @@ -256,7 +256,7 @@ bool Dilatometer_Init(const char * name, int id) // Make an initial reading (will allocate memory the first time only). double val; lastPosition = 0; // Reset the last position - bool result = Dilatometer_GetEdge(&val, 1); + bool result = Dilatometer_GetExpansion(&val, 1); return result; }