Version 0.3.31 Switched plato to sg calculation in bmsd.

Fri, 17 Apr 2020 11:29:37 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 17 Apr 2020 11:29:37 +0200
changeset 654
0aef416dbceb
parent 653
aa25efa1d629
child 655
f4e00869f39f

Version 0.3.31 Switched plato to sg calculation in bmsd.

bmsd/ispindels.c file | annotate | diff | comparison | revisions
config.status file | annotate | diff | comparison | revisions
configure file | annotate | diff | comparison | revisions
configure.ac file | annotate | diff | comparison | revisions
--- 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);
--- 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"
--- 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"
 
--- 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)

mercurial