def get_value(self):
if self.__rated:<EOL><INDENT>return self.__battery_range<EOL><DEDENT>return self.__ideal_battery_range<EOL>
Return the battery range.

        This function will return either the rated range or the ideal range
        based on the gui_settings.