roundly bug fix

This commit is contained in:
Dooho Yi 2021-10-04 18:45:02 +09:00
parent 21a3209625
commit 6ed99551ea

View file

@ -120,7 +120,7 @@ int move_target = 0;
int move_duration = 10000; int move_duration = 10000;
void moving() { 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); float speed = fabs(velocity);
// //
MONITORING_SERIAL.print("move_target --> "); MONITORING_SERIAL.println(move_target); MONITORING_SERIAL.print("move_target --> "); MONITORING_SERIAL.println(move_target);