Open gbr1 opened 2 years ago
Thanks for your report @gbr1. The reason is that the developers used an integer type in the library source code. Clearly that is not an appropriate API design for these functions.
Fortunately it is only a convenience function and the user is still able to calculate a usable battery voltage value in their own code as you did.
Hi! I have connected a 2s battery to the carrier. I discovered that:
(float)battery.getRaw() / 77
I obtain 7.41V(float)battery.getConverted()
gives 7.00V(float)battery.getFiltered()
gives 7.00V Using an external voltmeter, measure is 7.41VWhy
getConverted
method doesn't return 7.41V?Thank you in advance!