# HG changeset patch # User Michiel Broek # Date 1587115777 -7200 # Node ID 0aef416dbceb924e9752c850bc8a3eb33e515cd7 # Parent aa25efa1d629938f89b21c670c75a9df163d956c Version 0.3.31 Switched plato to sg calculation in bmsd. diff -r aa25efa1d629 -r 0aef416dbceb bmsd/ispindels.c --- a/bmsd/ispindels.c Thu Apr 16 20:14:02 2020 +0200 +++ b/bmsd/ispindels.c Fri Apr 17 11:29:37 2020 +0200 @@ -158,7 +158,9 @@ snprintf(buf, 64, "%.5f", ispindel->gravity); line = xstrcat(line, buf); line = xstrcat(line, (char *)","); - snprintf(buf, 64, "%.5f", 1 + (ispindel->gravity / (258.6 - ((ispindel->gravity / 258.2) * 227.1)))); +// snprintf(buf, 64, "%.5f", 1 + (ispindel->gravity / (258.6 - ((ispindel->gravity / 258.2) * 227.1)))); + snprintf(buf, 64, "%.5f", 1.00001 + (0.0038661 * ispindel->gravity) + (1.3488e-5 * ispindel->gravity * ispindel->gravity) + + (4.3074e-8 * ispindel->gravity * ispindel->gravity * ispindel->gravity)); line = xstrcat(line, buf); line = xstrcat(line, (char *)","); snprintf(buf, 64, "%.6f", ispindel->battery); diff -r aa25efa1d629 -r 0aef416dbceb config.status --- a/config.status Thu Apr 16 20:14:02 2020 +0200 +++ b/config.status Fri Apr 17 11:29:37 2020 +0200 @@ -621,7 +621,7 @@ S["CC"]="gcc" S["CYEARS"]="2016-2020" S["COPYRIGHT"]="Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved" -S["VERSION"]="0.3.30" +S["VERSION"]="0.3.31" S["PACKAGE"]="bms" S["SUBDIRS"]="bmsd doc script tools www" S["target_alias"]="" @@ -710,7 +710,7 @@ D["PACKAGE_STRING"]=" \"\"" D["PACKAGE_BUGREPORT"]=" \"\"" D["PACKAGE_URL"]=" \"\"" -D["VERSION"]=" \"0.3.30\"" +D["VERSION"]=" \"0.3.31\"" D["COPYRIGHT"]=" \"Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved\"" D["STDC_HEADERS"]=" 1" D["HAVE_SYS_TYPES_H"]=" 1" diff -r aa25efa1d629 -r 0aef416dbceb configure --- a/configure Thu Apr 16 20:14:02 2020 +0200 +++ b/configure Fri Apr 17 11:29:37 2020 +0200 @@ -2043,7 +2043,7 @@ PACKAGE="bms" -VERSION="0.3.30" +VERSION="0.3.31" COPYRIGHT="Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved" CYEARS="2016-2020" diff -r aa25efa1d629 -r 0aef416dbceb configure.ac --- a/configure.ac Thu Apr 16 20:14:02 2020 +0200 +++ b/configure.ac Fri Apr 17 11:29:37 2020 +0200 @@ -8,7 +8,7 @@ dnl General settings dnl After changeing the version number, run autoconf! PACKAGE="bms" -VERSION="0.3.30" +VERSION="0.3.31" COPYRIGHT="Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved" CYEARS="2016-2020" AC_SUBST(PACKAGE)