# Error with closed control on sensor less mode

**URL:** <https://discourse.odriverobotics.com/t/error-with-closed-control-on-sensor-less-mode/8534>\
**Category:** Support\
**Created:** [January 17, 2022, 5:45am UTC](https://discourse.odriverobotics.com/t/error-with-closed-control-on-sensor-less-mode/8534 "2022-01-17T05:45:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![takijo](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@takijo](https://discourse.odriverobotics.com/u/takijo)\
**Post date:** [January 17, 2022, 5:45am UTC](https://discourse.odriverobotics.com/t/error-with-closed-control-on-sensor-less-mode/8534/1 "2022-01-17T05:45:04Z")

</div>

Hello

I’m challenging to spin bldc motor with sensorless mode.

The motor can spin with open control(sensorless\_ramp.finishe\_on\_vel=False).  
But spin for seconds and stop with closed control(sensorless\_ramp.finishe\_on\_vel=True).

The error is

`MOTOR_ERROR_MODULATION_IS_NAN`

Why this error appear with only closed control?

The sensorless\_ramp params are below:  
accel: 300.0 (float)  
current: 1.5 (float)  
finish\_distance: 100.0 (float)  
finish\_on\_distance: False (bool)  
finish\_on\_enc\_idx: False (bool)  
finish\_on\_vel: True (bool)  
ramp\_distance: 3.140000104904175 (float)  
ramp\_time: 0.4000000059604645 (float)  
vel: 3000.0 (float)

thanks.

---

<div class="post-metadata">

**Author:** ![towen](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/t/bcef8e/32.png) [@towen](https://discourse.odriverobotics.com/u/towen)\
**Post date:** [January 17, 2022, 9:08am UTC](https://discourse.odriverobotics.com/t/error-with-closed-control-on-sensor-less-mode/8534/2 "2022-01-17T09:08:01Z")

</div>

Er, [didn’t you already solve this?](https://discourse.odriverobotics.com/t/motor-error-modulation-is-nan-on-sensorless-mode/8509) 🤔

Please use your other thread to discuss this same issue - don’t make duplicate topics.

---

<div class="post-metadata">

**Author:** ![takijo](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@takijo](https://discourse.odriverobotics.com/u/takijo)\
**Post date:** [January 17, 2022, 11:27am UTC](https://discourse.odriverobotics.com/t/error-with-closed-control-on-sensor-less-mode/8534/3 "2022-01-17T11:27:33Z")

</div>

ok, We will discuss in [this theread](https://discourse.odriverobotics.com/t/motor-error-modulation-is-nan-on-sensorless-mode/8509).
