From 6119f76e97ba04b802831e0fd07eacdfd1abfb0c Mon Sep 17 00:00:00 2001 From: nightflyer88 Date: Sat, 12 Jan 2019 23:03:17 +0100 Subject: [PATCH] beta status finished --- CG_scale.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CG_scale.ino b/CG_scale.ino index afb468f..cc6d543 100644 --- a/CG_scale.ino +++ b/CG_scale.ino @@ -9,7 +9,7 @@ ****************************************************************** history: - V1.0 beta first release + V1.0 12.01.19 first release ****************************************************************** @@ -316,7 +316,7 @@ void loop() { // CG transverse axis if (nLoadcells > 2) { - CG_trans = (distanceX3 / 2) - ((weightLoadCell1 * distanceX3) / (weightLoadCell1 + weightLoadCell3)); + CG_trans = (distanceX3 / 2) - (((weightLoadCell1 + weightLoadCell2 / 2) * distanceX3) / weightTotal); } }