From 6ed99551ea792eed51f904d95211d8a3795eb52b Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Mon, 4 Oct 2021 18:45:02 +0900 Subject: [PATCH] roundly bug fix --- roundly/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundly/src/main.cpp b/roundly/src/main.cpp index 76dc17c..d646f22 100644 --- a/roundly/src/main.cpp +++ b/roundly/src/main.cpp @@ -120,7 +120,7 @@ int move_target = 0; int move_duration = 10000; void moving() { // - float velocity = move_target / move_duration * 1000; // unit conv.: (steps/msec) --> (steps/sec) + float velocity = (float)move_target / move_duration * 1000; // unit conv.: (steps/msec) --> (steps/sec) float speed = fabs(velocity); // MONITORING_SERIAL.print("move_target --> "); MONITORING_SERIAL.println(move_target);