156 line = xstrcat(line, buf); |
156 line = xstrcat(line, buf); |
157 line = xstrcat(line, (char *)","); |
157 line = xstrcat(line, (char *)","); |
158 snprintf(buf, 64, "%.5f", ispindel->gravity); |
158 snprintf(buf, 64, "%.5f", ispindel->gravity); |
159 line = xstrcat(line, buf); |
159 line = xstrcat(line, buf); |
160 line = xstrcat(line, (char *)","); |
160 line = xstrcat(line, (char *)","); |
161 snprintf(buf, 64, "%.5f", 1 + (ispindel->gravity / (258.6 - ((ispindel->gravity / 258.2) * 227.1)))); |
161 // snprintf(buf, 64, "%.5f", 1 + (ispindel->gravity / (258.6 - ((ispindel->gravity / 258.2) * 227.1)))); |
|
162 snprintf(buf, 64, "%.5f", 1.00001 + (0.0038661 * ispindel->gravity) + (1.3488e-5 * ispindel->gravity * ispindel->gravity) + |
|
163 (4.3074e-8 * ispindel->gravity * ispindel->gravity * ispindel->gravity)); |
162 line = xstrcat(line, buf); |
164 line = xstrcat(line, buf); |
163 line = xstrcat(line, (char *)","); |
165 line = xstrcat(line, (char *)","); |
164 snprintf(buf, 64, "%.6f", ispindel->battery); |
166 snprintf(buf, 64, "%.6f", ispindel->battery); |
165 line = xstrcat(line, buf); |
167 line = xstrcat(line, buf); |
166 line = xstrcat(line, (char *)","); |
168 line = xstrcat(line, (char *)","); |