This project has moved and is read-only. For the latest updates, please go here.

Resolution of temperature / BT Signal

Topics: 1. General
Apr 25, 2016 at 1:02 PM
Edited Apr 26, 2016 at 7:10 AM
Hello, first thanks for this nice tool.
I have one minor question regarding the resulution/accuracy of the "device temperature" and "BT Signal". In the tool output of SBFspot 3.1.4 (that I'm using as input for an other tool) the resolution is only integer. (temperature is always x.0 °C)
  ..
  BT Signal=68%
  ..
  Device Temperature: 60.0°C
  ..
But in the sqlite-DB the values have 2 or more digits behind the point. Are the values rounded in the output ?
One additional digit would be sufficient in my point of view.
Apr 25, 2016 at 9:21 PM
Edited Apr 28, 2016 at 1:15 PM
You're right... DB values have 1 decimal which is OK
Verbose output has lost the decimal fraction part.
If you want to correct this in SBFspot.cpp:
if (VERBOSE_NORMAL) printf("BT Signal=%0.f%%\n", Inverters[0]->BT_Signal);
//should be
if (VERBOSE_NORMAL) printf("BT Signal=%0.1f%%\n", Inverters[0]->BT_Signal);
printf("Device Temperature: %3.1f%sC\n", (float)(Inverters[inv]->Temperature / 100), SYM_DEGREE); // degree symbol is different on windows/linux
//should be
printf("Device Temperature: %3.1f%sC\n", ((float)Inverters[inv]->Temperature / 100), SYM_DEGREE); // degree symbol is different on windows/linux
Marked as answer by SBF on 5/31/2016 at 8:06 AM
Apr 26, 2016 at 8:30 AM
Thanks, works as expected now.
I tried it with V3.15 and the changes mentioned above.