roundly bug fix
This commit is contained in:
parent
21a3209625
commit
6ed99551ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue