changed enum to struct for battery parameters