diff --git a/src/C++/Driver/src/KobukiDriver/CKobuki.cpp b/src/C++/Driver/src/KobukiDriver/CKobuki.cpp index 02cfe9d..258f384 100755 --- a/src/C++/Driver/src/KobukiDriver/CKobuki.cpp +++ b/src/C++/Driver/src/KobukiDriver/CKobuki.cpp @@ -572,10 +572,10 @@ void CKobuki::Rotate(int degrees) { float radians = degrees * PI / 180.0; // Calculate the rotation speed in radians per second - double radpersec = 1; + double RADS_PER_SEC = 1; // calculator rotation time and give absolute value - float rotation_time = std::abs(radians / radpersec); + float rotation_time = std::abs(radians / RADS_PER_SEC); // Use original function to set the rotation speed in mm/s setRotationSpeed(radians);