git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update dilatometer.c
[matches/MCTX3420.git]
/
server
/
sensors
/
dilatometer.c
diff --git
a/server/sensors/dilatometer.c
b/server/sensors/dilatometer.c
index
3b05c5f
..
f197941
100644
(file)
--- 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.
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;
lastPosition = average; // Current position now becomes the last position
}
return result;
UCC
git Repository :: git.ucc.asn.au