|
|
@ -65,7 +65,7 @@ public class StepMotorConverter { |
|
|
|
*/ |
|
|
|
public static int toMotorSpeed(double speed, double S) |
|
|
|
{ |
|
|
|
return (int)(speed * 60.0 / S); |
|
|
|
return (int)speed; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -76,6 +76,6 @@ public class StepMotorConverter { |
|
|
|
*/ |
|
|
|
public static double toUserSpeed(int motorSpeed, double S) |
|
|
|
{ |
|
|
|
return (double)motorSpeed * S / 60.0; |
|
|
|
return (double) motorSpeed; |
|
|
|
} |
|
|
|
} |