sbgisen / vesc

VESC Interface for ROS
Apache License 2.0
41 stars 33 forks source link

[vesc_hw_interface] velocity conversion in servo controller #62

Closed jsupratman13 closed 1 year ago

jsupratman13 commented 1 year ago

Abstract

https://github.com/sbgisen/vesc/blob/0f75361ade3762d1eff18bd1c48d443b115b3fa4/vesc_hw_interface/src/vesc_servo_controller.cpp#L290

should be

 const double velocity_rpm = values->getVelocityERPM() / static_cast<double>(num_rotor_poles_/ 2); 

How to Reproduce the Bug

Problem due to the Bug

Factors

Suggestion