# Use MPC in Carmaker for Simulink

**URL:** <https://forums.ipg-automotive.com/t/use-mpc-in-carmaker-for-simulink/805>\
**Category:** CM4SL\
**Tags:** carmaker\
**Created:** [29 January 2024 14:26 UTC](https://forums.ipg-automotive.com/t/use-mpc-in-carmaker-for-simulink/805 "2024-01-29T14:26:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pogo](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@Pogo](https://forums.ipg-automotive.com/u/Pogo)\
**Post date:** [29 January 2024 14:26 UTC](https://forums.ipg-automotive.com/t/use-mpc-in-carmaker-for-simulink/805/1 "2024-01-29T14:26:19Z")

</div>

We currently have a vehicle controller model for parking in Simulink, which can calculate the vehicle’s speed, angle, and other states. However, we need to input these states to the vehicle for simulation purposes, without modifying the steering wheel, gas, brake, etc. Is it possible to achieve direct control over the vehicle’s state by modifying or integrating Carmaker for Simulink?

---

<div class="post-metadata">

**Author:** ![roberto.ortolan](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roberto.ortolan](https://forums.ipg-automotive.com/u/roberto.ortolan)\
**Post date:** [30 January 2024 09:46 UTC](https://forums.ipg-automotive.com/t/use-mpc-in-carmaker-for-simulink/805/2 "2024-01-30T09:46:22Z")

</div>

Good morning,

you would need to use input from file, where you input steering wheel, gas pedal and brake pedal as highlighted below

 ![image](https://forums.ipg-automotive.com/uploads/default/original/1X/b5167177c216989c16b56f952a9358ee73a55310.png)

More information about this can be found in the user guide in chapter 5.9

 ![image](https://forums.ipg-automotive.com/uploads/default/original/1X/267c27a4b097cc130b54c40ca0c03a35dba3cc2c.png)  
 ![image](https://forums.ipg-automotive.com/uploads/default/original/1X/d48231272bacfdbeaf2830d42942eaf918ac77f8.png)
