From 528de4f3f469c3177b36247e63c789c073fd8ca7 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 20 Nov 2024 15:39:13 +0100 Subject: [PATCH] code conventions --- src/C++/Driver/src/KobukiDriver/CKobuki.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);