Modeling and control of a half electric vehicle including an inverter, an in-wheel BLDC motor and Pacejka's tire model