Update functions

1) update reference voltage function
2) update battery power measure function