FS-Driverless / Formula-Student-Driverless-Simulator

A virtual world where Autonomous Systems from different Formula Student teams can compete in time-trial challenges
https://fs-driverless.github.io/Formula-Student-Driverless-Simulator
GNU General Public License v2.0
204 stars 85 forks source link

Improve wheel rpm calculation #313

Closed mateusz-lichota closed 2 years ago

mateusz-lichota commented 2 years ago

Before the code used for rpm calculations took a crude numerical derivative of wheel rotation angle, which was hacky and had potential to fail at higher rpms / lower physics update rates. The new code plugs into the internals of the vehicle simulation to retrieve wheel velocities and angles directly.