I'm new in MultiWii but I have a question, how the measuring of Voltage is made? Exactly I mean how the VBATSCALE work...
Because I found it not very comfortable...
Why not to use the two values of used resistors as voltage divider?
Calculation will be made this way:
UR2=AD*5/1023
Vbat=UR2*(R1+R2)/R2
Where UR2 is voltage on the resistor from multiwii to ground, AD is value from A/D converter in decimal, Vbat is real voltage of battery (shown e.g. in GUI) and R1+R2 are the two used resistors.
I think that if you measure the resistors, you can get immediately very accurate measuring...
Of course there could be voltage*10 as now and maybe also *10 or *100 the number from resistor voltage divider for not using fraction.
Or simply use float...
Error in measuring will be probably made by wrong values of resistor, so there could be variable Vbat=UR2*((R1+R2)/R2+correction)
What do you think? Thanks
