Can I modify the pid law to my own control algorithm , for example SMC control?And where?

can I modify the control law without opencr?

The control values of the internal PID controller can be modified by adjusting the relevant control table items .

You are also able to bypass the internal PID controller through the use of PWM mode.