Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于e_y为什么为负数的个人理解 #4

Open
JosenJiang opened this issue Apr 20, 2024 · 0 comments
Open

关于e_y为什么为负数的个人理解 #4

JosenJiang opened this issue Apr 20, 2024 · 0 comments

Comments

@JosenJiang
Copy link

JosenJiang commented Apr 20, 2024

e_y = -l_d*math.sin(theta_e) # 与博客中公式相比多了个负号,我目前还不是太理解,暂时先放着

关于e_y为什么为负数的个人理解:
当theta_e为正时,前轮需要左转(正方向旋转),因为PID控制器的target设为了0,所以在PID控制器看来,当前的前轮转角状态相对而言应该是负数,即 —theta_e;右转同理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant