modify get battery value function for V18