Parameterized the battery power limit logic in Stateflow