RT-Thread-packages / rt-robot

a platform in creating new exciting robots
Apache License 2.0
111 stars 62 forks source link

1.将结构体中的struct kinematics中的wheel_radius修改为circumference,这种修改更为贴近作者原意。 #38

Open yaojinrun opened 4 years ago

yaojinrun commented 4 years ago

2.kinematics_get_rpm函数中动态申请内存后并没有释放,会造成内存消耗。作为存储转换后的rpm值只需要申请一次后可重复使用,故移动到了kinematics_create函数中。 2.kinematics_get_rpm和kinematics_get_velocity函数中circumference替换wheel_radius即可修正计算错误的问题。 3.api.md文档中wheel_radius的值实际作为半径计算的。

sogwms commented 4 years ago

建议分开提交, 你的标题和提交的内容不太一致啊, circumference确实是bug修复

yaojinrun commented 4 years ago

好的,晚点重新提交