# How to define the factor of brake pedal (equivalent to deceleration) in terms of creating generic model of AEB?

**URL:** <https://forums.ipg-automotive.com/t/how-to-define-the-factor-of-brake-pedal-equivalent-to-deceleration-in-terms-of-creating-generic-model-of-aeb/409>\
**Category:** Vehicle Modelling\
**Tags:** adas, carmaker\
**Created:** [15 February 2023 09:05 UTC](https://forums.ipg-automotive.com/t/how-to-define-the-factor-of-brake-pedal-equivalent-to-deceleration-in-terms-of-creating-generic-model-of-aeb/409 "2023-02-15T09:05:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riken](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/r/b5e925/32.png) [@Riken](https://forums.ipg-automotive.com/u/Riken)\
**Post date:** [15 February 2023 09:05 UTC](https://forums.ipg-automotive.com/t/how-to-define-the-factor-of-brake-pedal-equivalent-to-deceleration-in-terms-of-creating-generic-model-of-aeb/409/1 "2023-02-15T09:05:05Z")

</div>

Hello all,

I have created fuggy logic based generic AEB model to integrate in vehicle control via FMU plug in option.  
The FMU plug in model works somehow if I do use Brake deceleration value from 0 to 1 in terms partial or full deceleration in the model because I connect my output to Vehicle Control Brake in order to activate AEB.  
But I actually want something else, for example if I want to give input deceleration of -10 m/s^2 then in the output of Vehicle control brake it does not consider valid out (because it only consider value from 0 to 1).  
So the question is … is there any way I can know that at what value or factor (from 0 to 1) sould I use equivalent to -10 m/s^2 deceleration in model? How to define it?  
I am attaching the pictures of What I want and What I have now.

 ![What I want](https://forums.ipg-automotive.com/uploads/default/original/1X/6d92b6267230a3838349e87e13cb9606ff86f82e.png)  
 ![What I have](https://forums.ipg-automotive.com/uploads/default/original/1X/a9c3661e147648e7c9e1d19d951d929ba6a22e9c.png)

I tried to explain as easy as I possibly could, but still if you have more questions on it please ask anything more on it.

Thank you!

---

<div class="post-metadata">

**Author:** ![bogomil.shtarkalev](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@bogomil.shtarkalev](https://forums.ipg-automotive.com/u/bogomil.shtarkalev)\
**Post date:** [15 February 2023 09:17 UTC](https://forums.ipg-automotive.com/t/how-to-define-the-factor-of-brake-pedal-equivalent-to-deceleration-in-terms-of-creating-generic-model-of-aeb/409/2 "2023-02-15T09:17:53Z")

</div>

Hello,

Perhaps you need a simple PI controller that compares the current vehicle deceleration to the target? Something simple, e.g. if you are decelerating at a rate under 10m/s2, apply the brake pedal at a greater value, if you are over 10m/s2, reduce the force on the brake pedal. The brake pedal pos would not be a direct input from the deceleration, but rather it would be derived from it.

---

<div class="post-metadata">

**Author:** ![Riken](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/r/b5e925/32.png) [@Riken](https://forums.ipg-automotive.com/u/Riken)\
**Post date:** [21 February 2023 07:23 UTC](https://forums.ipg-automotive.com/t/how-to-define-the-factor-of-brake-pedal-equivalent-to-deceleration-in-terms-of-creating-generic-model-of-aeb/409/3 "2023-02-21T07:23:01Z")

</div>

Thank you for the tipps, I will try to figure it now with PI controller as you are suggesting let see if it works.  
Thanks and Regards!  
Riken
