This repository contains a MATLAB/Simulink project about the Model-Based Design of a controller for a PHEV. The objective is to implement a control strategy for the allocation of the acceleration demanded by the driver to the IC engine and electric motor, depending on the current state of the vehicle, battery charge and fuel level. Similarly, the controller is in charge of managing the repartition of the braking demand between the regenerative braking and standard braking.
├───Docs
│ └───Test reports
└───Hybrid-controller
├───Code
│ └───GenerationReport
├───Controller
├───Plant
├───Simulation
│ ├───MIL
│ ├───PIL
│ └───SIL
└───Test
├───ControllerTest
│ ├───Baselines
│ ├───Test Reports
│ └───testScenarios
├───FSM Test
│ ├───Baselines
│ ├───Inputs
│ └───Test Reports
└───Integration Test
└───Inputs
- MATLAB R2020b
- Simulink v10.2
- Vehicle Dynamics Blockset
- Simulink Test
- Simulink Requirements
- Powertrain Blockset
- Embedded Coder
- Control System Toolbox
- Simulink Coder
- Clone the code or download the .zip file.
- Open the MATLAB project file
Hybrid-controller/HybridController.prj
The Simulink model Hybrid-controller/Simulation/MIL/HybridVehicle.slx
contains the PHEV plant in which has been integrated the controller (with default drive cycle is the WLTP Class 3).
This repository is provided with the following reports:
- Project report
Docs
- Test reports
Docs/Test reports
- MISRA check (HTML format)
Hybrid-controller/Code/MisraCheck.html
- Code generation report
Hybrid-controller/Code/GenerationReport/Controller_contents.html
- Gallina Giuseppe
- Gargano Ivan Enzo
- Mirabella Michele
- Prignoli Francesco
- Rubbini Nicolò
MIT