code conventions

This commit is contained in:
2024-11-20 15:39:13 +01:00
parent c16ba3cf9d
commit 528de4f3f4

View File

@@ -572,10 +572,10 @@ void CKobuki::Rotate(int degrees) {
float radians = degrees * PI / 180.0; float radians = degrees * PI / 180.0;
// Calculate the rotation speed in radians per second // Calculate the rotation speed in radians per second
double radpersec = 1; double RADS_PER_SEC = 1;
// calculator rotation time and give absolute value // 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 // Use original function to set the rotation speed in mm/s
setRotationSpeed(radians); setRotationSpeed(radians);