I solved this problem by changing voltage and sensorless_ramp.finishe_on_vel=False.
But, this error appear with sensorless_ramp.finishe_on_vel=True.
If anyone can tell me why, please let me know.
You should be able to change the speed while spinning regardless of this option. The sensorless_ramp config only applies while starting.
What happens if you change controller.input_vel after it has started ?
@towen
Thank you for your reply.
I change the controller.input_vel after started, but Nothing changed.
I think it works as open loop control with “sensorless_ramp.finishe_on_vel=False”
It may be that your velocity gains are too high, so as soon as it quits the open loop part it fails. Try reducing vel_gain and vel_integrator_gain to zero and bringing up vel_gain gradually.
@towen
You’re absolutely right.
I changed vel_gain =0.0001,vel_gain_integer=0, everything works well.
input_vel works too.
The maximum ramp_vel I could switch from open loop to closed loop was about 600.
Thank you very much.
Sensorless control tuning is very difficult…