X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensors%2Fdilatometer.c;h=f197941f53cae64843923248045d311306d5f97f;hb=797dd747d118bdfb374d220017b035382c4ec3c7;hp=3b05c5f519f62b22a1eed8f0f149496f8f1246c0;hpb=bd93dbb92da512a1bd585ed29bc46a5e8fc60015;p=matches%2FMCTX3420.git diff --git a/server/sensors/dilatometer.c b/server/sensors/dilatometer.c index 3b05c5f..f197941 100644 --- a/server/sensors/dilatometer.c +++ b/server/sensors/dilatometer.c @@ -230,7 +230,7 @@ bool Dilatometer_GetExpansion( int id, double * value, int samples) if( lastPosition > 0) { // Find the rate of expansion and convert to mm. Will give a negative result for compression. - *value = (average - lastPosition) * SCALE; + *value = (average - lastPosition) * SCALE *2; lastPosition = average; // Current position now becomes the last position } return result;